- internal static bool GetFontMetrics(Graphics g, Font font, out int ascent, out int descent) {
- #if DriverDebug
- Console.WriteLine("GetFontMetrics(): Called");
- #endif
- return driver.GetFontMetrics(g, font, out ascent, out descent);
+ internal static IntPtr GetActive ()
+ {
+ DriverDebug ("GetActive (): Called");
+ return driver.GetActive ();
+ }
+
+ internal static SizeF GetAutoScaleSize (Font font)
+ {
+ DriverDebug ("GetAutoScaleSize ({0}): Called", font);
+ return driver.GetAutoScaleSize (font);
+ }
+
+ internal static Region GetClipRegion (IntPtr handle)
+ {
+ DriverDebug ("GetClipRegion ({0}): Called", Window (handle));
+ return driver.GetClipRegion (handle);
+ }
+
+ internal static void GetCursorInfo (IntPtr cursor, out int width, out int height, out int hotspot_x, out int hotspot_y)
+ {
+ DriverDebug ("GetCursorInfo ({0}): Called", cursor.ToInt32 ());
+ driver.GetCursorInfo (cursor, out width, out height, out hotspot_x, out hotspot_y);
+ }
+
+ internal static void GetCursorPos (IntPtr handle, out int x, out int y)
+ {
+ DriverDebug ("GetCursorPos ({0}): Called", Window (handle));
+ driver.GetCursorPos (handle, out x, out y);
+ }
+
+ internal static void GetDisplaySize (out Size size)
+ {
+ DriverDebug ("GetDisplaySize (): Called");
+ driver.GetDisplaySize (out size);
+ }
+
+ internal static IntPtr GetFocus ()
+ {
+ DriverDebug ("GetFocus (): Called, Result:{0}", Window (driver.GetFocus ()));
+ return driver.GetFocus ();
+ }
+
+ internal static bool GetFontMetrics (Graphics g, Font font, out int ascent, out int descent)
+ {
+ DriverDebug ("GetFontMetrics (): Called");
+ return driver.GetFontMetrics (g, font, out ascent, out descent);