wx.lib.ogl.basic.ControlPoint¶
The wx.ControlPoint
class.
Class Hierarchy¶
Known Subclasses¶
wx.lib.ogl.basic.PolygonControlPoint
, wx.lib.ogl.composit.DivisionControlPoint
, wx.lib.ogl.divided.DividedShapeControlPoint
, wx.lib.ogl.lines.LineControlPoint
Known Superclasses¶
wx.lib.ogl.basic.RectangleShape
Methods Summary¶
Default class constructor |
|
Get the attachment position. |
|
Get the number of attachments. |
|
The begin drag left handler. |
|
The drag left handler. |
|
The draw handler. |
|
not implemented??? |
|
The end drag left handler. |
|
The erase handler. |
|
Set the erase object ??? |
Class API¶
- class ControlPoint(RectangleShape)¶
The
wx.ControlPoint
class.
Methods¶
- __init__(self, theCanvas, object, size, the_xoffset, the_yoffset, the_type)¶
Default class constructor
- Parameters:
theCanvas – a
Canvas
object – the shape, instance of
Shape
size (float) – the size
the_xoffset (float) – the x position
the_yoffset (float) – the y position
the_type (int) – one of the following types ???
Control point type
Description
CONTROL_POINT_VERTICAL
Vertical
CONTROL_POINT_HORIZONTAL
Horizontal
CONTROL_POINT_DIAGONAL
Diagonal
- GetAttachmentPosition(self, attachment, nth=0, no_arcs=1, line=None)¶
Get the attachment position.
- Parameters:
attachment – the attachment ???
nth – get nth attachment ???
no_arcs – ???
line – ???
- GetNumberOfAttachments(self)¶
Get the number of attachments.
- OnBeginDragLeft(self, x, y, keys=0, attachment=0)¶
The begin drag left handler.
- OnDragLeft(self, draw, x, y, keys=0, attachment=0)¶
The drag left handler.
- OnDraw(self, dc)¶
The draw handler.
- OnDrawContents(self, dc)¶
not implemented???
- OnEndDragLeft(self, x, y, keys=0, attachment=0)¶
The end drag left handler.
- OnErase(self, dc)¶
The erase handler.
- SetEraseObject(self, er)¶
Set the erase object ???
- Parameters:
er – the object