예제 #1
0
 /* this method can (and does, on X11) return
  * (FormWindowState)(-1), when the state of the window
  * cannot be determined (in the X11 case, when the
  * window isn't mapped.)  Checking for the additional
  * return value is less expensive than
  * throwing/catching an exception. */
 internal static FormWindowState GetWindowState(IntPtr handle)
 {
                 #if DriverDebug
     Console.WriteLine("GetWindowState({0}): Called", Window(handle));
                 #endif
     return(driver.GetWindowState(handle));
 }
예제 #2
0
 /* this method can (and does, on X11) return
  * (FormWindowState) (-1), when the state of the window
  * cannot be determined (in the X11 case, when the
  * window isn't mapped.)  Checking for the additional
  * return value is less expensive than
  * throwing/catching an exception. */
 internal static FormWindowState GetWindowState(IntPtr handle)
 {
     DriverDebug("GetWindowState ({0}): Called", Window(handle));
     return(driver.GetWindowState(handle));
 }