Phoenix Logo

phoenix_title wx.lib.agw.cubecolourdialog.AlphaCtrl

Implements the drawing, mouse handling and sizing routines for the alpha channel control.


class_hierarchy Class Hierarchy

Inheritance diagram for class AlphaCtrl:


method_summary Methods Summary

__init__ Default class constructor.
DrawAlphaShading Draws the alpha shading on top of the checkerboard.
DrawMarkers Draws square markers used with mouse gestures.
OnPaint Handles the wx.EVT_PAINT for AlphaCtrl.
TrackPoint Tracks a mouse action inside the Alpha channel control.

api Class API



class AlphaCtrl(BaseLineCtrl)

Implements the drawing, mouse handling and sizing routines for the alpha channel control.


Methods



__init__(self, parent)

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

Parameters:parent – the control parent window.


DrawAlphaShading(self, dc, rect)

Draws the alpha shading on top of the checkerboard.

Parameters:
  • dc – an instance of wx.DC;
  • rect – the AlphaCtrl client rectangle.


DrawMarkers(self, dc=None)

Draws square markers used with mouse gestures.

Parameters:dc – an instance of wx.DC.


OnPaint(self, event)

Handles the wx.EVT_PAINT for AlphaCtrl.

Parameters:event – a PaintEvent event to be processed.


TrackPoint(self, pt)

Tracks a mouse action inside the Alpha channel control.

Parameters:pt – an instance of wx.Point.