Esempio n. 1
0
 def destroy(self):
     b = self._backing
     if b:
         b.paint_screen = False
         b.close()
         self._backing = None
     GTK2WindowBase.destroy(self)
Esempio n. 2
0
 def destroy(self):
     b = self._backing
     if b:
         b.paint_screen = False
         b.close()
         self._backing = None
     GTK2WindowBase.destroy(self)
Esempio n. 3
0
 def set_alpha(self):
     GTK2WindowBase.set_alpha(self)
     rgb_formats = self._client_properties.get("encodings.rgb_formats", [])
     #gl_window_backing supports BGR(A) too:
     if "RGBA" in rgb_formats:
         rgb_formats.append("BGRA")
     if "RGB" in rgb_formats:
         rgb_formats.append("BGR")
Esempio n. 4
0
 def set_alpha(self):
     GTK2WindowBase.set_alpha(self)
     rgb_formats = self._client_properties.get("encodings.rgb_formats", [])
     #gl_window_backing supports BGR(A) too:
     if "RGBA" in rgb_formats:
         rgb_formats.append("BGRA")
     if "RGB" in rgb_formats:
         rgb_formats.append("BGR")
Esempio n. 5
0
 def freeze(self):
     b = self._backing
     if b:
         glarea = b._backing
         if glarea:
             self.remove(glarea)
         b.close()
         self._backing = None
     GTK2WindowBase.freeze(self)
Esempio n. 6
0
 def init_window(self, metadata):
     mww, mwh = self.max_window_size
     mts = GLClientWindow.MAX_TEXTURE_SIZE
     if mts < 16 * 1024 and (mww == 0 or mwh == 0 or mts < mww
                             or mts < mwh):
         log("overriding max_window_size=%ix%i with %ix%i", mww, mwh, mts,
             mts)
         self.max_window_size = mts, mts
     GTK2WindowBase.init_window(self, metadata)
Esempio n. 7
0
 def freeze(self):
     b = self._backing
     if b:
         glarea = b._backing
         if glarea:
             self.remove(glarea)
         b.close()
         self._backing = None
     GTK2WindowBase.freeze(self)
Esempio n. 8
0
 def new_backing(self, bw, bh):
     self.remove_backing()
     widget = GTK2WindowBase.new_backing(self, bw, bh)
     log("new_backing(%s, %s)=%s", bw, bh, widget)
     if self.drawing_area:
         self.remove(self.drawing_area)
     self.init_widget_events(widget)
     self.add(widget)
     self.drawing_area = widget
Esempio n. 9
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     GTK2WindowBase.__init__(self, *args)
Esempio n. 10
0
 def destroy(self):
     self.remove_backing()
     GTK2WindowBase.destroy(self)
Esempio n. 11
0
 def freeze(self):
     self.remove_backing()
     GTK2WindowBase.freeze(self)
Esempio n. 12
0
 def set_alpha(self):
     GTK2WindowBase.set_alpha(self)
     rgb_formats = self._client_properties.get("encodings.rgb_formats", [])
     GLClientWindowCommon.add_rgb_formats(self, rgb_formats)
Esempio n. 13
0
 def destroy(self):
     self.remove_backing()
     GTK2WindowBase.destroy(self)
Esempio n. 14
0
 def freeze(self):
     self.remove_backing()
     GTK2WindowBase.freeze(self)
Esempio n. 15
0
 def process_map_event(self):
     log("GL process_map_event()")
     GTK2WindowBase.process_map_event(self)
     self._backing.paint_screen = True
Esempio n. 16
0
 def new_backing(self, bw, bh):
     widget = GTK2WindowBase.new_backing(self, bw, bh)
     log("new_backing(%s, %s)=%s", bw, bh, widget)
     self.add(widget)
Esempio n. 17
0
 def setup_window(self):
     self._client_properties["encoding.uses_swscale"] = False
     self._client_properties[
         "encoding.full_csc_modes"] = self.get_full_csc_modes()
     self._client_properties["encoding.csc_modes"] = self.get_csc_modes()
     GTK2WindowBase.setup_window(self)
Esempio n. 18
0
 def process_map_event(self):
     log("GL process_map_event()")
     GTK2WindowBase.process_map_event(self)
     self._backing.paint_screen = True
Esempio n. 19
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     GTK2WindowBase.__init__(self, *args)
Esempio n. 20
0
 def do_configure_event(self, event):
     log("GL do_configure_event(%s)", event)
     GTK2WindowBase.do_configure_event(self, event)
     self._backing.paint_screen = True
Esempio n. 21
0
 def destroy(self):
     self._backing.paint_screen = False
     GTK2WindowBase.destroy(self)
Esempio n. 22
0
 def new_backing(self, bw, bh):
     widget = GTK2WindowBase.new_backing(self, bw, bh)
     log("new_backing(%s, %s)=%s", bw, bh, widget)
     self.add(widget)
Esempio n. 23
0
 def setup_window(self):
     self._client_properties["encoding.full_csc_modes"] = self.get_full_csc_modes()
     self._client_properties["encoding.csc_modes"] = self.get_csc_modes()
     GTK2WindowBase.setup_window(self)
Esempio n. 24
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     GTK2WindowBase.__init__(self, *args)
     self.add(self._backing._backing)
Esempio n. 25
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     GTK2WindowBase.__init__(self, *args)
     self.add(self._backing._backing)
Esempio n. 26
0
 def setup_window(self):
     self._client_properties["encoding.uses_swscale"] = False
     GTK2WindowBase.setup_window(self)
Esempio n. 27
0
 def setup_window(self):
     self._client_properties["encoding.uses_swscale"] = False
     GTK2WindowBase.setup_window(self)
Esempio n. 28
0
 def do_configure_event(self, event):
     log("GL do_configure_event(%s)", event)
     GTK2WindowBase.do_configure_event(self, event)
     self._backing.paint_screen = True
Esempio n. 29
0
 def destroy(self):
     self._backing.paint_screen = False
     GTK2WindowBase.destroy(self)