Logo Search packages:      
Sourcecode: gnome-mousetrap version File versions  Download package

def mouseTrap::mainGui::CoordsGui::expose (   self,
  widget,
  event 
)

Draws in the Point Mapper calling the functions that will
draw the plane and point.

Arguments:
- self: The main object pointer.
- widget: The Drawing area.
- event: The event information.

Definition at line 376 of file mainGui.py.

00376                                      :
        """
        Draws in the Point Mapper calling the functions that will
        draw the plane and point.
        
        Arguments:
        - self: The main object pointer.
        - widget: The Drawing area.
        - event: The event information.
        """
        
        self.context = self.window.cairo_create()
        self.context.rectangle(event.area.x, event.area.y,
                               event.area.width, event.area.height)
        self.context.clip()

        if "clk-dialog" in mouseTrap.getState():
            self.dialogMapper()
            return True
        
      if self.axis:
          self.drawAxis()

        self.drawAreas()
        self.drawTriggers()
        
        pointer = mouseTrap.getModVar( "cam", "mpPointer" )
        
        if pointer:
            self.drawPoint( pointer.x, pointer.y, 4 )

        return True

    def drawTriggers( self ):


Generated by  Doxygen 1.6.0   Back to index