AGW Logo

agw_title HSVWheel

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

hierarchy Inheritance Diagram

Inheritance diagram for: HSVWheel

Inheritance diagram of HSVWheel


method_summary Methods Summary

__init__Default class constructor.
DrawMarkersDraws the markers on top of the background bitmap.
InCircleReturns whether a point is inside the HSV wheel or not.
OnLeftDownHandles the wx.EVT_LEFT_DOWN for HSVWheel.
OnLeftUpHandles the wx.EVT_LEFT_UP for HSVWheel.
OnMotionHandles the wx.EVT_MOTION for HSVWheel.
TrackPointTrack a mouse event inside the HSV colour wheel.

API Class API

class HSVWheel(BasePyControl)[source]

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



__init__(parent)[source]

Default class constructor. Used internally. Do not call it in your code!

Parameters:parent – the control parent window.


DrawMarkers(dc=None)[source]

Draws the markers on top of the background bitmap.

Parameters:dc – an instance of wx.DC.


InCircle(pt)[source]

Returns whether a point is inside the HSV wheel or not.

Parameters:pt – an instance of wx.Point.


OnLeftDown(event)[source]

Handles the wx.EVT_LEFT_DOWN for HSVWheel.

Parameters:event – a wx.MouseEvent event to be processed.


OnLeftUp(event)[source]

Handles the wx.EVT_LEFT_UP for HSVWheel.

Parameters:event – a wx.MouseEvent event to be processed.



OnMotion(event)[source]

Handles the wx.EVT_MOTION for HSVWheel.

Parameters:event – a wx.MouseEvent event to be processed.



TrackPoint(pt)[source]

Track a mouse event inside the HSV colour wheel.

Parameters:pt – an instance of wx.Point.

Tree

Table Of Contents

Previous topic

CustomPanel

Next topic

LineDescription