Implements the drawing, mouse handling and sizing routines for the HSV colour wheel.
__init__ | Default class constructor. |
DrawMarkers | Draws the markers on top of the background bitmap. |
InCircle | Returns whether a point is inside the HSV wheel or not. |
OnLeftDown | Handles the wx.EVT_LEFT_DOWN for HSVWheel. |
OnLeftUp | Handles the wx.EVT_LEFT_UP for HSVWheel. |
OnMotion | Handles the wx.EVT_MOTION for HSVWheel. |
TrackPoint | Track a mouse event inside the HSV colour wheel. |
Implements the drawing, mouse handling and sizing routines for the HSV colour wheel.
Default class constructor. Used internally. Do not call it in your code!
Parameters: | parent – the control parent window. |
---|
Draws the markers on top of the background bitmap.
Parameters: | dc – an instance of wx.DC. |
---|
Returns whether a point is inside the HSV wheel or not.
Parameters: | pt – an instance of wx.Point. |
---|
Handles the wx.EVT_LEFT_DOWN for HSVWheel.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_LEFT_UP for HSVWheel.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|
Handles the wx.EVT_MOTION for HSVWheel.
Parameters: | event – a wx.MouseEvent event to be processed. |
---|