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() -> None
Rect2DDouble(x : float, y : float, w : float, h : float) -> None
__init__(self, *args, **kw)¶__init__ (self)
None
__init__ (self, x : float, y : float, w : float, h : float)
x (wx.Double) –
y (wx.Double) –
w (wx.Double) –
h (wx.Double) –
None
ConstrainTo(self, rect : Rect2DDouble)¶rect (Rect2DDouble) –
None
Contains(self, *args, **kw)¶Contains (self, pt : Point2DDouble)
pt (Point2DDouble) –
bool
Contains (self, rect : Rect2DDouble)
rect (Rect2DDouble) –
bool
CreateIntersection(self, otherRect : Rect2DDouble)¶otherRect (Rect2DDouble) –
Rect2DDouble
CreateUnion(self, otherRect : Rect2DDouble)¶otherRect (Rect2DDouble) –
Rect2DDouble
Get(self)¶Get() . (x, y, width, height)
Return the rectangle’s properties as a tuple.
Any
GetBottom(self)¶float
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)¶float
GetLeftBottom(self)¶Point2DDouble
GetLeftTop(self)¶Point2DDouble
GetOutCode(self, pt : Point2DDouble)¶pt (Point2DDouble) –
GetOutcode(self, pt : Point2DDouble)¶pt (Point2DDouble) –
GetPosition(self)¶Point2DDouble
GetRight(self)¶float
GetRightBottom(self)¶Point2DDouble
GetRightTop(self)¶Point2DDouble
GetTop(self)¶float
HaveEqualSize(self, rect : Rect2DDouble)¶rect (Rect2DDouble) –
bool
Inset(self, *args, **kw)¶Inset (self, x : float, y : float)
x (wx.Double) –
y (wx.Double) –
None
Inset (self, left : float, top : float, right : float, bottom : float)
left (wx.Double) –
top (wx.Double) –
right (wx.Double) –
bottom (wx.Double) –
None
Interpolate(self, widthfactor : int, heightfactor : int)¶widthfactor (wx.int) –
heightfactor (wx.int) –
Point2DDouble
Intersect(self, *args, **kw)¶Intersect (self, otherRect : Rect2DDouble)
otherRect (Rect2DDouble) –
None
Intersect (src1 : Rect2DDouble, src2 : Rect2DDouble, dest : Rect2DDouble)
src1 (Rect2DDouble) –
src2 (Rect2DDouble) –
dest (Rect2DDouble) –
None
Intersects(self, rect : Rect2DDouble)¶rect (Rect2DDouble) –
bool
IsEmpty(self)¶bool
MoveBottomTo(self, n : float)¶n (wx.Double) –
None
MoveCentreTo(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
MoveLeftBottomTo(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
MoveLeftTo(self, n : float)¶n (wx.Double) –
None
MoveLeftTopTo(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
MoveRightBottomTo(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
MoveRightTo(self, n : float)¶n (wx.Double) –
None
MoveRightTopTo(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
MoveTopTo(self, n : float)¶n (wx.Double) –
None
Offset(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
Scale(self, *args, **kw)¶Scale (self, f : float)
f (wx.Double) –
None
Scale (self, num : int, denum : int)
num (wx.int) –
denum (wx.int) –
None
SetBottom(self, n : float)¶n (wx.Double) –
None
SetCentre(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
SetLeft(self, n : float)¶n (wx.Double) –
None
SetLeftBottom(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
SetLeftTop(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
SetRight(self, n : float)¶n (wx.Double) –
None
SetRightBottom(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
SetRightTop(self, pt : Point2DDouble)¶pt (Point2DDouble) –
None
SetTop(self, n : float)¶n (wx.Double) –
None
Union(self, *args, **kw)¶Union (self, otherRect : Rect2DDouble)
otherRect (Rect2DDouble) –
None
Union (self, pt : Point2DDouble)
pt (Point2DDouble) –
None
Union (src1 : Rect2DDouble, src2 : Rect2DDouble, dest : Rect2DDouble)
src1 (Rect2DDouble) –
src2 (Rect2DDouble) –
dest (Rect2DDouble) –
None
__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 .