Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package ogl :: Class RectangleShape |
|
object
--+ |ShapeEvtHandler
--+ |Shape
--+ | RectangleShape
BitmapShape
,
CompositeShape
,
ControlPoint
,
DividedShape
,
DrawnShape
,
LabelShape
,
TextShape
The wxRectangleShape has rounded or square corners.
Method Summary | |
---|---|
__init__(self,
w,
h)
| |
Get the minimum bounding box for the shape, that defines the area available for drawing the contents (such as text). | |
Get the radius of the rectangle's rounded corners. | |
GetHeight(self)
| |
Get the point at which the line from (x1, y1) to (x2, y2) hits the shape. | |
GetWidth(self)
| |
OnDraw(self,
dc)
| |
Set the radius of the rectangle's rounded corners. | |
SetHeight(self,
h)
| |
Set the shape's size. | |
SetWidth(self,
w)
|
Class Variable Summary |
---|
Method Details |
---|
GetBoundingBoxMin(self)Get the minimum bounding box for the shape, that defines the area available for drawing the contents (such as text). Must be overridden.
|
GetCornerRadius(self)Get the radius of the rectangle's rounded corners. |
GetPerimeterPoint(self, x1, y1, x2, y2)Get the point at which the line from (x1, y1) to (x2, y2) hits the shape. Returns False if the line doesn't hit the perimeter.
|
SetCornerRadius(self, rad)Set the radius of the rectangle's rounded corners. 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. |
SetSize(self, x, y, recursive=False)Set the shape's size.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:12:52 2007 | http://epydoc.sf.net |