wx.lib.agw.cubecolourdialog.HSVWheel¶
Implements the drawing, mouse handling and sizing routines for the HSV colour wheel.
Class Hierarchy¶
Known Superclasses¶
wx.lib.agw.cubecolourdialog.BasePyControl
Methods Summary¶
Default class constructor. |
|
Draws the markers on top of the background bitmap. |
|
Returns whether a point is inside the HSV wheel or not. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Track a mouse event inside the HSV colour wheel. |
Class API¶
- class HSVWheel(BasePyControl)¶
Implements the drawing, mouse handling and sizing routines for the HSV colour wheel.
Methods¶
- __init__(self, parent)¶
Default class constructor. Used internally. Do not call it in your code!
- Parameters:
parent – the control parent window.
- DrawMarkers(self, dc=None)¶
Draws the markers on top of the background bitmap.
- Parameters:
dc – an instance of
wx.DC
.
- InCircle(self, pt)¶
Returns whether a point is inside the HSV wheel or not.
- Parameters:
pt – an instance of
wx.Point
.
- OnLeftDown(self, event)¶
Handles the
wx.EVT_LEFT_DOWN
forHSVWheel
.- Parameters:
event – a
MouseEvent
event to be processed.
- OnLeftUp(self, event)¶
Handles the
wx.EVT_LEFT_UP
forHSVWheel
.- Parameters:
event – a
MouseEvent
event to be processed.
- OnMotion(self, event)¶
Handles the
wx.EVT_MOTION
forHSVWheel
.- Parameters:
event – a
MouseEvent
event to be processed.