Table Of Contents

Previous topic

PolygonShape

Next topic

Shape

This Page

phoenix_title RectangleShape

The wxRectangleShape has rounded or square corners.

Derived from:
Shape

class_hierarchy Inheritance Diagram

Inheritance diagram for class RectangleShape

Inheritance diagram of RectangleShape


super_classes Known Superclasses

lib.ogl._basic.Shape


method_summary Methods Summary

__init__  
GetBoundingBoxMin  
GetCornerRadius Get the radius of the rectangle’s rounded corners.
GetHeight  
GetPerimeterPoint  
GetWidth  
OnDraw  
SetCornerRadius Set the radius of the rectangle’s rounded corners.
SetHeight  
SetSize  
SetWidth  

api Class API



class RectangleShape(Shape)

The wxRectangleShape has rounded or square corners.

Derived from:
Shape

Methods



__init__(self, w = 0.0, h = 0.0)


GetBoundingBoxMin(self)


GetCornerRadius(self)

Get the radius of the rectangle’s rounded corners.



GetHeight(self)


GetPerimeterPoint(self, x1, y1, x2, y2)


GetWidth(self)


OnDraw(self, dc)


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.



SetHeight(self, h)


SetSize(self, x, y, recursive = False)


SetWidth(self, w)