AGW Logo

agw_title RGBCube

Implements the drawing, mouse handling and sizing routines for the RGB cube colour.

hierarchy Inheritance Diagram

Inheritance diagram for: RGBCube

Inheritance diagram of RGBCube


method_summary Methods Summary

__init__Default class constructor.
DrawLinesDraws the lines connecting the markers on top of the background bitmap.
DrawMarkersDraws the markers on top of the background bitmap.
OnLeftDownHandles the wx.EVT_LEFT_DOWN for RGBCube.
OnLeftUpHandles the wx.EVT_LEFT_UP for RGBCube.
OnMotionHandles the wx.EVT_MOTION for RGBCube.

API Class API

class RGBCube(BasePyControl)[source]

Implements the drawing, mouse handling and sizing routines for the RGB cube colour.



__init__(parent)[source]

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

Parameters:parent – the control parent window.


DrawLines(dc)[source]

Draws the lines connecting the markers on top of the background bitmap.

Parameters:dc – an instance of wx.DC.


DrawMarkers(dc=None)[source]

Draws the markers on top of the background bitmap.

Parameters:dc – an instance of wx.DC.



OnLeftDown(event)[source]

Handles the wx.EVT_LEFT_DOWN for RGBCube.

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


OnLeftUp(event)[source]

Handles the wx.EVT_LEFT_UP for RGBCube.

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



OnMotion(event)[source]

Handles the wx.EVT_MOTION for RGBCube.

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

Tree

Table Of Contents

Previous topic

LineDescription

Next topic

cubecolourdialog functions