| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
MouseSelector --+
|
RubberBand
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Methods | |
|
Inherited from |
| Class Variables | |
move_cursor = 22
|
|
resize_cursors =
|
|
|
Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Process a mouse event for this selector. This callback is called for any mouse event once the selector is active in the scroller. The selector is not deactivated until this handler returns False, so make sure some event will cause it to return False.
|
Driver for new event. This selector recognizes a few different types of events: a normal event where the user uses the mouse to select a new rectangular area, a move event where the user can drag around the area without changing its size, and a bunch of resize events where the user can grab a corner or edge and make the rectangular area bigger.
|
General event handler. This method is called by processEvent to show the results of the user interaction on the bitmap.
|
User interaction is complete. This method is called when the user has completed the interaction. This does not necessarily destroy the selector -- it's up to the processEvent returning False to signal the BitmapScroller to kill the selector. This could be used in multi-stage processing; see the RubberBand for an example where finishEvent doesn't mean that the selector should be destroyed.
|
|
Are the world coordinates on the selection border? Return true if the world coordinates specified are on or within a tolerance of the selecton border. |
Get resize cursor depending on position on border.
Modified from wx.lib.mixins.rubberband: Return a position
number in the range 0 .. 7 to indicate where on the box border
the point is. The layout is:
0 1 2
7 3
6 5 4
|
Are the world coordinates on the selection border? Return true if the world coordinates specified are on or within a tolerance of the selecton border. |
|
|
Return selected box in image coords. Returns an (x, y, w, h) tuple of the selected rectangle. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:17 2008 | http://epydoc.sourceforge.net |