wx.Rect2D

Inheritance diagram for wx.Rect2D:



Class API

Methods

__init__(x=0.0, y=0.0, w=0.0, h=0.0)

wx.Rect2D is a rectangle, with position and size, in a 2D coordinate system with floating point component values.

Parameters:

  • x (double)
  • y (double)
  • w (double)
  • h (double)

Returns:

wx.Rect2D


ConstrainTo(rect)

Parameters:


Contains(pt)

Parameters:


Returns:

bool


ContainsRect(rect)

Parameters:


Returns:

bool


CreateIntersection(otherRect)

Parameters:


Returns:

wx.Rect2D


CreateUnion(otherRect)

Parameters:


Returns:

wx.Rect2D


Get()

Return x, y, width and height properties as a tuple.


Returns:

(x, y, width, height)


GetBottom()
No docstrings available for this method.

GetCentre()
No docstrings available for this method.

GetLeft()
No docstrings available for this method.

GetLeftBottom()
No docstrings available for this method.

GetLeftTop()
No docstrings available for this method.

GetOutcode(pt)

Parameters:


Returns:

int


GetPosition()
No docstrings available for this method.

GetRight()
No docstrings available for this method.

GetRightBottom()
No docstrings available for this method.

GetRightTop()
No docstrings available for this method.

GetSize()
No docstrings available for this method.

GetTop()
No docstrings available for this method.

HaveEqualSize(rect)

Parameters:


Returns:

bool


Inset(x, y)

Alternative signature:

Inset(self, Double left, Double top, Double right, Double bottom)

Parameters:

  • x (double)
  • y (double)

Interpolate(widthfactor, heightfactor)

Parameters:

  • widthfactor (int)
  • heightfactor (int)

Returns:

wx.Point2D


Intersect(otherRect)

Parameters:


Intersects(rect)

Parameters:


Returns:

bool


IsEmpty()
No docstrings available for this method.

MoveBottomTo(n)

Parameters:

  • n (double)

MoveCentreTo(pt)

Parameters:


MoveLeftBottomTo(pt)

Parameters:


MoveLeftTo(n)

Parameters:

  • n (double)

MoveLeftTopTo(pt)

Parameters:


MoveRightBottomTo(pt)

Parameters:


MoveRightTo(n)

Parameters:

  • n (double)

MoveRightTopTo(pt)

Parameters:


MoveTopTo(n)

Parameters:

  • n (double)

Offset(pt)

Parameters:


Scale(f)

Alternative signature:

Scale(self, int num, int denum)

Parameters:

  • f (double)

Set(x=0, y=0, width=0, height=0)

Parameters:

  • x (double)
  • y (double)
  • width (double)
  • height (double)

SetBottom(n)

Parameters:

  • n (double)

SetCentre(pt)

Parameters:


SetLeft(n)

Parameters:

  • n (double)

SetLeftBottom(pt)

Parameters:


SetLeftTop(pt)

Parameters:


SetRight(n)

Parameters:

  • n (double)

SetRightBottom(pt)

Parameters:


SetRightTop(pt)

Parameters:


SetTop(n)

Parameters:

  • n (double)

Union(otherRect)

Parameters:


Properties

height
width
x
y