wx.Rect2D¶
Class Hierarchy¶
Inheritance diagram for class Rect2D:

Methods Summary¶Get() . (x, y, width, height) |
|
Returns an immutable representation of the |
|
Properties Summary¶See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
A public C++ attribute of type Double . |
|
A public C++ attribute of type Double . |
|
A public C++ attribute of type Double . |
|
A public C++ attribute of type Double . |
Class API¶wx.Rect2D(object)¶Possible constructors:
Rect2DDouble()
Rect2DDouble(x, y, w, h)
__init__(self, *args, **kw)¶__init__ (self)
__init__ (self, x, y, w, h)
x (wx.Double) –
y (wx.Double) –
w (wx.Double) –
h (wx.Double) –
ConstrainTo(self, rect)¶rect (Rect2DDouble) –
Contains(self, *args, **kw)¶Contains (self, pt)
pt (Point2DDouble) –
bool
Contains (self, rect)
rect (Rect2DDouble) –
bool
CreateIntersection(self, otherRect)¶otherRect (Rect2DDouble) –
Rect2DDouble
CreateUnion(self, otherRect)¶otherRect (Rect2DDouble) –
Rect2DDouble
Get(self)¶Get() . (x, y, width, height)
Return the rectangle’s properties as a tuple.
PyObject
GetBottom(self)¶wx.Double
GetCentre(self)¶Point2DDouble
GetIM(self)¶Returns an immutable representation of the wx.Rect2D object, based on namedtuple.
This new object is hashable and can be used as a dictionary key,
be added to sets, etc. It can be converted back into a real wx.Rect2D
with a simple statement like this: obj = wx.Rect2D(imObj).
GetLeft(self)¶wx.Double
GetLeftBottom(self)¶Point2DDouble
GetLeftTop(self)¶Point2DDouble
GetOutCode(self, pt)¶pt (Point2DDouble) –
GetOutcode(self, pt)¶pt (Point2DDouble) –
GetPosition(self)¶Point2DDouble
GetRight(self)¶wx.Double
GetRightBottom(self)¶Point2DDouble
GetRightTop(self)¶Point2DDouble
GetTop(self)¶wx.Double
HaveEqualSize(self, rect)¶rect (Rect2DDouble) –
bool
Inset(self, *args, **kw)¶Inset (self, x, y)
x (wx.Double) –
y (wx.Double) –
Inset (self, left, top, right, bottom)
left (wx.Double) –
top (wx.Double) –
right (wx.Double) –
bottom (wx.Double) –
Interpolate(self, widthfactor, heightfactor)¶widthfactor (wx.int) –
heightfactor (wx.int) –
Point2DDouble
Intersect(self, *args, **kw)¶Intersect (self, otherRect)
otherRect (Rect2DDouble) –
Intersect (src1, src2, dest)
src1 (Rect2DDouble) –
src2 (Rect2DDouble) –
dest (Rect2DDouble) –
Intersects(self, rect)¶rect (Rect2DDouble) –
bool
IsEmpty(self)¶bool
MoveBottomTo(self, n)¶n (wx.Double) –
MoveCentreTo(self, pt)¶pt (Point2DDouble) –
MoveLeftBottomTo(self, pt)¶pt (Point2DDouble) –
MoveLeftTo(self, n)¶n (wx.Double) –
MoveLeftTopTo(self, pt)¶pt (Point2DDouble) –
MoveRightBottomTo(self, pt)¶pt (Point2DDouble) –
MoveRightTo(self, n)¶n (wx.Double) –
MoveRightTopTo(self, pt)¶pt (Point2DDouble) –
MoveTopTo(self, n)¶n (wx.Double) –
Offset(self, pt)¶pt (Point2DDouble) –
Scale(self, *args, **kw)¶Scale (self, f)
f (wx.Double) –
Scale (self, num, denum)
num (wx.int) –
denum (wx.int) –
SetBottom(self, n)¶n (wx.Double) –
SetCentre(self, pt)¶pt (Point2DDouble) –
SetLeft(self, n)¶n (wx.Double) –
SetLeftBottom(self, pt)¶pt (Point2DDouble) –
SetLeftTop(self, pt)¶pt (Point2DDouble) –
SetRight(self, n)¶n (wx.Double) –
SetRightBottom(self, pt)¶pt (Point2DDouble) –
SetRightTop(self, pt)¶pt (Point2DDouble) –
SetTop(self, n)¶n (wx.Double) –
Union(self, *args, **kw)¶Union (self, otherRect)
otherRect (Rect2DDouble) –
Union (self, pt)
pt (Point2DDouble) –
Union (src1, src2, dest)
src1 (Rect2DDouble) –
src2 (Rect2DDouble) –
dest (Rect2DDouble) –
__bool__(self)¶__getitem__(self, idx)¶__len__(self)¶__nonzero__(self)¶__reduce__(self)¶__repr__(self)¶__setitem__(self, idx, val)¶__str__(self)¶__ne__(self)¶rect (Rect2DDouble) –
__eq__(self)¶rect (Rect2DDouble) –
LeftBottom¶See GetLeftBottom and SetLeftBottom
LeftTop¶See GetLeftTop and SetLeftTop
Position¶See GetPosition
RightBottom¶See GetRightBottom and SetRightBottom
RightTop¶See GetRightTop and SetRightTop
m_height¶A public C++ attribute of type Double .
m_width¶A public C++ attribute of type Double .
m_x¶A public C++ attribute of type Double .
m_y¶A public C++ attribute of type Double .