wx.lib.ogl.basic.RectangleShape¶The wx.RectangleShape class has rounded or square corners.
Known Subclasses¶wx.lib.ogl.basic.ControlPoint, wx.lib.ogl.basic.TextShape, wx.lib.ogl.bmpshape.BitmapShape, wx.lib.ogl.composit.CompositeShape, wx.lib.ogl.divided.DividedShape, wx.lib.ogl.drawn.DrawnShape, wx.lib.ogl.lines.LabelShape
Methods Summary¶__init__ |
Default class constructor |
GetBoundingBoxMin |
Get the bounding box minimum. |
GetCornerRadius |
Get the radius of the rectangle’s rounded corners. |
GetHeight |
Get the height. |
GetPerimeterPoint |
Get the perimeter point. |
GetWidth |
Get the width. |
OnDraw |
The draw handler. |
SetCornerRadius |
Set the radius of the rectangle’s rounded corners. |
SetHeight |
Set the heigth. |
SetSize |
Set the size. |
SetWidth |
Set the width. |
Class API¶RectangleShape(Shape)¶The wx.RectangleShape class has rounded or square corners.
__init__(self, w = 0.0, h = 0.0)¶Default class constructor
| Parameters: |
|
|---|
GetBoundingBoxMin(self)¶Get the bounding box minimum.
GetCornerRadius(self)¶Get the radius of the rectangle’s rounded corners.
GetHeight(self)¶Get the height.
GetPerimeterPoint(self, x1, y1, x2, y2)¶Get the perimeter point.
| Parameters: |
|
|---|
GetWidth(self)¶Get the width.
OnDraw(self, dc)¶The draw handler.
SetCornerRadius(self, rad)¶Set the radius of the rectangle’s rounded corners.
| Parameters: | rad – If the radius is zero, a non-rounded rectangle will be drawn. If the radius is negative, the value is the proportion of the smaller dimension of the rectangle. |
|---|
SetHeight(self, h)¶Set the heigth.
| Parameters: | h – heigth to be set |
|---|
SetSize(self, x, y, recursive = False)¶Set the size.
| Parameters: |
|
|---|
SetWidth(self, w)¶Set the width.
| Parameters: | w – width to be set |
|---|