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

def mouseTrap::mainGui::CoordsGui::drawLine (   self,
  ctx,
  x1,
  y1,
  x2,
  y2,
  color 
)

Draws a Line

Arguments:
- self:  The main object pointer.
- ctx:   The Cairo Context.
- x1:    The Starting X coord.
- y1:    The Starting Y coord.
- x2:    The Ending X coord.
- y2:    The Ending Y coord.
- color: The line color.

Definition at line 496 of file mainGui.py.

00496                                                     :
        """
        Draws a Line
        
        Arguments:
        - self:  The main object pointer.
        - ctx:   The Cairo Context.
        - x1:    The Starting X coord.
        - y1:    The Starting Y coord.
        - x2:    The Ending X coord.
        - y2:    The Ending Y coord.
        - color: The line color.
        """
            
        ctx.move_to( x1, y1 )
        ctx.line_to( x2, y2 )
        ctx.set_line_width( 1.0 )
        ctx.set_source_rgb( color[0], color[1], color[2])
        ctx.stroke()    
        return True

    def dialogMapper( self ):


Generated by  Doxygen 1.6.0   Back to index