wx.lib.ogl.basic.ShapeRegion¶
The ShapeRegion
class.
Class Hierarchy¶
Methods Summary¶
Default class constructor |
|
Clear the text. |
|
Get the actual colour object from the |
|
Get actual pen. |
|
Get the colour. |
|
Get the font. |
|
Get the format mode. |
|
Get the formatted text. |
|
Get the height. |
|
Get the minimum size. |
|
Get the name. |
|
Get the pen colour |
|
Get the pen style. |
|
Get the position. |
|
Get the proportion. |
|
Get the size. |
|
Get the text. |
|
Get the width. |
|
Set the colour. |
|
Set the font. |
|
Set the format mode of the region. |
|
Set the minimum size. |
|
Set the name. |
|
Set the pen colour. |
|
Set the pen style. |
|
Set the position. |
|
Set the proportions. |
|
Set the size. |
|
Set the text. |
Class API¶
- class ShapeRegion(object)¶
The
ShapeRegion
class.
Methods¶
- __init__(self, region=None)¶
Default class constructor
- Parameters:
region – a parent region or None???
- ClearText(self)¶
Clear the text.
- GetActualColourObject(self)¶
Get the actual colour object from the
wx.ColourDatabase
.
- GetActualPen(self)¶
Get actual pen.
Note
Returns NULL if the pen is invisible (different to pen being transparent; indicates that region boundary should not be drawn.)
- GetColour(self)¶
Get the colour.
- GetFont(self)¶
Get the font.
- GetFormatMode(self)¶
Get the format mode.
- GetFormattedText(self)¶
Get the formatted text.
- GetHeight(self)¶
Get the height.
- GetMinSize(self)¶
Get the minimum size.
- GetName(self)¶
Get the name.
- GetPenColour(self)¶
Get the pen colour
- GetPenStyle(self)¶
Get the pen style.
- GetPosition(self)¶
Get the position.
- GetProportion(self)¶
Get the proportion.
- GetSize(self)¶
Get the size.
- GetText(self)¶
Get the text.
- GetWidth(self)¶
Get the width.
- SetColour(self, col)¶
Set the colour.
- Parameters:
col (str) – a valid colour name, see
wx.ColourDatabase
- SetFormatMode(self, mode)¶
Set the format mode of the region.
- Parameters:
mode – can be a bit list of the following
Format mode
Description
FORMAT_NONE
No formatting
FORMAT_CENTRE_HORIZ
Horizontal centring
FORMAT_CENTRE_VERT
Vertical centring
- SetMinSize(self, w, h)¶
Set the minimum size.
- Parameters:
w – the minimum width
- Param hh:
the minimum height
- SetName(self, s)¶
Set the name.
- Parameters:
s (str) – the name
- SetPenColour(self, col)¶
Set the pen colour.
- Parameters:
col (str) – a valid colour name, see
wx.ColourDatabase
- SetPosition(self, xp, yp)¶
Set the position.
- Parameters:
xp – the x position
- Param ypyp:
the y position
- SetProportions(self, xp, yp)¶
Set the proportions.
- Parameters:
xp – the x region proportion
- Param ypyp:
the y region proportion
- SetSize(self, w, h)¶
Set the size.
- Parameters:
w – the width
- Param hh:
the jeight
- SetText(self, s)¶
Set the text.
- Parameters:
s (str) – the text