phoenix_title wx.lib.agw.cubecolourdialog.HSVWheel

Implements the drawing, mouse handling and sizing routines for the HSV colour wheel.


class_hierarchy Class Hierarchy

Inheritance diagram for class HSVWheel:

super_classes Known Superclasses

wx.lib.agw.cubecolourdialog.BasePyControl


method_summary Methods Summary

__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.


api 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 for HSVWheel.

Parameters:

event – a MouseEvent event to be processed.



OnLeftUp(self, event)

Handles the wx.EVT_LEFT_UP for HSVWheel.

Parameters:

event – a MouseEvent event to be processed.



OnMotion(self, event)

Handles the wx.EVT_MOTION for HSVWheel.

Parameters:

event – a MouseEvent event to be processed.



TrackPoint(self, pt)

Track a mouse event inside the HSV colour wheel.

Parameters:

pt – an instance of wx.Point.