Logo Search packages:      
Sourcecode: python-gtkglext1 version File versions  Download package

def gtkgl::apputils::GLArea::__motion_notify_event (   self,
  widget,
  event 
) [private]
'motion_notify_event' signal handler.
This function invokes glscene.motion().

Definition at line 326 of file apputils.py.

                                                  :
        """'motion_notify_event' signal handler.
        This function invokes glscene.motion().
        """
        button_mask = gtk.gdk.BUTTON1_MASK | \
                      gtk.gdk.BUTTON2_MASK | \
                      gtk.gdk.BUTTON3_MASK | \
                      gtk.gdk.BUTTON4_MASK | \
                      gtk.gdk.BUTTON5_MASK
        if self.__motion_events & gtk.gdk.BUTTON_MOTION_MASK and \
           event.state & button_mask:
            # Call glscene.button_motion()
            self.glscene.button_motion(widget.allocation.width,
                                       widget.allocation.height,
                                       event)
        if self.__motion_events & gtk.gdk.POINTER_MOTION_MASK:
            # Call glscene.pointer_motion()
            self.glscene.pointer_motion(widget.allocation.width,
                                        widget.allocation.height,
                                        event)
        return True


Generated by  Doxygen 1.6.0   Back to index