예제 #1
0
 def __init__(self, root, capture):
     RootWindowModel.__init__(self, root, capture)
     log("SeamlessRootWindowModel(%s, %s) SEAMLESS=%s", root, capture,
         SEAMLESS)
     self.property_names.append("shape")
     self.dynamic_property_names.append("shape")
     self.rectangles = self.get_shape_rectangles(logit=True)
     self.shape_notify = []
예제 #2
0
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.metrics = None
     self.ddc, self.cdc, self.memdc, self.bitmap = None, None, None, None
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
예제 #3
0
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.metrics = None
     self.ddc, self.cdc, self.memdc, self.bitmap = None, None, None, None
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
예제 #4
0
 def __init__(self, root, pixel_depth=32):
     RootWindowModel.__init__(self, root)
     self.pixel_depth = pixel_depth
     self.capture = init_capture(pixel_depth)
     log("Win32RootWindowModel(%s, %i) capture=%s", root, pixel_depth,
         self.capture)
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
예제 #5
0
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.dc, self.memdc, self.bitmap = None, None, None
     self.bit_depth = 32
     self.bitblt_err_time = 0
     self.disabled_dwm_composition = DISABLE_DWM_COMPOSITION and set_dwm_composition(
         DWM_EC_DISABLECOMPOSITION)
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
예제 #6
0
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.metrics = None
     self.ddc, self.cdc, self.memdc, self.bitmap = None, None, None, None
     if DISABLE_DWM_COMPOSITION:
         try:
             from ctypes import windll
             DWM_EC_DISABLECOMPOSITION = 0
             windll.dwmapi.DwmEnableComposition(DWM_EC_DISABLECOMPOSITION)
         except Exception as e:
             log.error("Error: cannot disable composition:")
             log.error(" %s", e)
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
예제 #7
0
 def __init__(self, root_window, capture):
     RootWindowModel.__init__(self, root_window, capture)
     self.geometry = root_window.get_geometry()[:4]
예제 #8
0
 def __init__(self, root_window):
     RootWindowModel.__init__(self, root_window, OSXRootCapture())