fgRect

fontgate.fgRect = class fgRect(object)

Rectangle representation

Constructors:
  fgRect() - default
  fgRect(fgRect) - copy
  fgRect(fgPoint, fgPoint)
  fgRect(fgPoint, fgPoint, bool empty)
  fgRect(float x1, float y1, float x2, float y2)

Math Operations:
  fgRect + fgPoint
  fgRect + fgRect
  fgRect + float
  fgRect - fgPoint
  fgRect - fgRect
  fgRect - float
  fgRect * float
  fgRect / float
  fgRect & fgRect
  fgRect | fgRect

Methods

__add__(...)
x.__add__(y) <==> x+y
__and__(...)
x.__and__(y) <==> x&y
__delattr__(...)
x.__delattr__('name') <==> del x.name
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__delslice__(...)
x.__delslice__(i, j) <==> del x[i:j]

Use of negative indices is not supported.
__div__(...)
x.__div__(y) <==> x/y
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.
__gt__(...)
x.__gt__(y) <==> x>y
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x

__mul__(...)
x.__mul__(y) <==> x*y
__ne__(...)
x.__ne__(y) <==> x!=y
__or__(...)
x.__or__(y) <==> x|y
__radd__(...)
x.__radd__(y) <==> y+x
__rand__(...)
x.__rand__(y) <==> y&x
__rdiv__(...)
x.__rdiv__(y) <==> y/x
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(y) <==> y*x
__ror__(...)
x.__ror__(y) <==> y|x
__rsub__(...)
x.__rsub__(y) <==> y-x
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__setslice__(...)
x.__setslice__(i, j, y) <==> x[i:j]=y

Use  of negative indices is not supported.
__str__(...)
x.__str__() <==> str(x)
__sub__(...)
x.__sub__(y) <==> x-y
adjust(...)
adjust(float x1, float y1, float x2, float y2)
adjusted(...)
fgRect adjusted(float x1, float y1, float x2, float y2)
asDict(...)
represent Py::Object as dictionary
asTuple(...)
represent Py::Object as tuple
assign(...)
assign(fgPoint, fgPoint[, fix=true]) or assign(float, float, float, float[, fix=true])
bottom(...)
float bottom()
center(...)
fgPoint center()
clear(...)
clear()
contains(...)
bool contains(fgPoint) or bool contains(fgRect)
containsX(...)
bool containsX(float)
containsY(...)
bool containsY(float)
diagonal(...)
float diagonal()
empty(...)
empty()
fix(...)
fix()
fix_x(...)
fix_x()
fix_y(...)
fix_y()
height(...)
float height()
intersects(...)
bool intersects(fgRect)
left(...)
float left()
move(...)
move(float dx, float dy)
moved(...)
fgRect moved(float dx, float dy)
right(...)
float right()
setBottom(...)
setBottom(float)
setHeight(...)
setHeight(float)
setLeft(...)
setLeft(float)
setRect(...)
setRect(int x, int y, int w, int h)
setRight(...)
setRight(float)
setSize(...)
setSize(fgPoint)
setTop(...)
setTop(float)
setWidth(...)
setWidth(float)
size(...)
fgPoint size()
top(...)
float top()
transform(...)
transform(fgMatrix)
transformed(...)
fgRect transformed(fgMatrix)
width(...)
float width()
zero(...)
zero()

Descriptors

ll
(fgPoint) lower left point
ur
(fgPoint) upper right point

Attributes

__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

adjust

fontgate.fgRect.adjust = adjust(...)
adjust(float x1, float y1, float x2, float y2)

adjusted

fontgate.fgRect.adjusted = adjusted(...)
fgRect adjusted(float x1, float y1, float x2, float y2)

asDict

fontgate.fgRect.asDict = asDict(...)
represent Py::Object as dictionary

assign

fontgate.fgRect.assign = assign(...)
assign(fgPoint, fgPoint[, fix=true]) or assign(float, float, float, float[, fix=true])

asTuple

fontgate.fgRect.asTuple = asTuple(...)
represent Py::Object as tuple

bottom

fontgate.fgRect.bottom = bottom(...)
float bottom()

center

fontgate.fgRect.center = center(...)
fgPoint center()

clear

fontgate.fgRect.clear = clear(...)
clear()

contains

fontgate.fgRect.contains = contains(...)
bool contains(fgPoint) or bool contains(fgRect)

containsX

fontgate.fgRect.containsX = containsX(...)
bool containsX(float)

containsY

fontgate.fgRect.containsY = containsY(...)
bool containsY(float)

diagonal

fontgate.fgRect.diagonal = diagonal(...)
float diagonal()

empty

fontgate.fgRect.empty = empty(...)
empty()

fix

fontgate.fgRect.fix = fix(...)
fix()

fix_x

fontgate.fgRect.fix_x = fix_x(...)
fix_x()

fix_y

fontgate.fgRect.fix_y = fix_y(...)
fix_y()

height

fontgate.fgRect.height = height(...)
float height()

intersects

fontgate.fgRect.intersects = intersects(...)
bool intersects(fgRect)

left

fontgate.fgRect.left = left(...)
float left()

ll

fontgate.fgRect.ll
(fgPoint) lower left point

move

fontgate.fgRect.move = move(...)
move(float dx, float dy)

moved

fontgate.fgRect.moved = moved(...)
fgRect moved(float dx, float dy)

fontgate.fgRect.right = right(...)
float right()

setBottom

fontgate.fgRect.setBottom = setBottom(...)
setBottom(float)

setHeight

fontgate.fgRect.setHeight = setHeight(...)
setHeight(float)

setLeft

fontgate.fgRect.setLeft = setLeft(...)
setLeft(float)

setRect

fontgate.fgRect.setRect = setRect(...)
setRect(int x, int y, int w, int h)

setRight

fontgate.fgRect.setRight = setRight(...)
setRight(float)

setSize

fontgate.fgRect.setSize = setSize(...)
setSize(fgPoint)

setTop

fontgate.fgRect.setTop = setTop(...)
setTop(float)

setWidth

fontgate.fgRect.setWidth = setWidth(...)
setWidth(float)

size

fontgate.fgRect.size = size(...)
fgPoint size()

top

fontgate.fgRect.top = top(...)
float top()

transform

fontgate.fgRect.transform = transform(...)
transform(fgMatrix)

transformed

fontgate.fgRect.transformed = transformed(...)
fgRect transformed(fgMatrix)

ur

fontgate.fgRect.ur
(fgPoint) upper right point

width

fontgate.fgRect.width = width(...)
float width()

zero

fontgate.fgRect.zero = zero(...)
zero()