A DividedShape
is a rectangle with a number of vertical divisions.
Each division may have its text formatted with independent characteristics,
and the size of each division relative to the whole image may be specified.
wx.lib.ogl.basic.RectangleShape
Default class constructor. |
|
Is the attachment valid? |
|
Edit the region colours and styles. Not implemented. |
|
Get the attachment position. |
|
Get the number of attachments. |
|
Make the control points. |
|
Make the mandatory control points. |
|
The draw handler. |
|
The draw contents handler. |
|
The right click handler. |
|
Reset the control points. |
|
Reset the mandatory control points. |
|
Set all region sizes according to proportions and this object |
|
Set the size. |
DividedShape
(RectangleShape)¶A DividedShape
is a rectangle with a number of vertical divisions.
Each division may have its text formatted with independent characteristics,
and the size of each division relative to the whole image may be specified.
__init__
(self, w, h)¶Default class constructor.
w – width of rectangle
h – height of rectangle
AttachmentIsValid
(self, attachment)¶Is the attachment valid?
attachment – the attachment
EditRegions
(self)¶Edit the region colours and styles. Not implemented.
GetAttachmentPosition
(self, attachment, nth = 0, no_arcs = 1, line = None)¶Get the attachment position.
Attachment points correspond to regions in the divided box.
attachment – the attachment ???
nth – get nth attachment ???
no_arcs – ???
line – ???
GetNumberOfAttachments
(self)¶Get the number of attachments.
There are two attachments for each region (left and right), plus one on the top and one on the bottom.
MakeControlPoints
(self)¶Make the control points.
MakeMandatoryControlPoints
(self)¶Make the mandatory control points.
OnDraw
(self, dc)¶The draw handler.
OnDrawContents
(self, dc)¶The draw contents handler.
OnRightClick
(self, x, y, keys = 0, attachment = 0)¶The right click handler.
ResetControlPoints
(self)¶Reset the control points.
Note
May only have the region handles, (n - 1) of them
ResetMandatoryControlPoints
(self)¶Reset the mandatory control points.
SetRegionSizes
(self)¶Set all region sizes according to proportions and this object total size.
SetSize
(self, w, h, recursive = True)¶Set the size.
w – width of rectangle
h – height of rectangle
recursive – not implemented