
wx.lib.ogl.basic.ControlPoint¶The wx.ControlPoint class.
Class Hierarchy¶
Inheritance diagram for class ControlPoint:

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¶ControlPoint(RectangleShape)¶The wx.ControlPoint class.
__init__(self, theCanvas, object, size, the_xoffset, the_yoffset, the_type)¶Default class constructor
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 |
|---|---|
|
Vertical |
|
Horizontal |
|
Diagonal |
GetAttachmentPosition(self, attachment, nth = 0, no_arcs = 1, line = None)¶Get the attachment position.
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 ???
er – the object