AGW Logo

agw_title AlphaCtrl

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

hierarchy Inheritance Diagram

Inheritance diagram for: AlphaCtrl

Inheritance diagram of AlphaCtrl


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DrawAlphaShadingDraws the alpha shading on top of the checkerboard.
DrawMarkersDraws square markers used with mouse gestures.
OnPaintHandles the wx.EVT_PAINT for AlphaCtrl.
TrackPointTracks a mouse action inside the Alpha channel control.

API Class API

class AlphaCtrl(BaseLineCtrl)[source]

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



__init__(parent)[source]

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

Parameters:parent – the control parent window.


DrawAlphaShading(dc, rect)[source]

Draws the alpha shading on top of the checkerboard.

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


DrawMarkers(dc=None)[source]

Draws square markers used with mouse gestures.

Parameters:dc – an instance of wx.DC.



OnPaint(event)[source]

Handles the wx.EVT_PAINT for AlphaCtrl.

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


TrackPoint(pt)[source]

Tracks a mouse action inside the Alpha channel control.

Parameters:pt – an instance of wx.Point.
Tree

Table Of Contents

Previous topic

cubecolourdialog

Next topic

BaseLineCtrl