fgBrush

fontgate.fgBrush = class fgBrush(object)

Brush representation

Constructors:
  fgBrush() - default
  fgBrush(fgBrush) - copy
  fgBrush(fgColor) - solid brush with selected color and default size (1, 0)
  fgBrush(fgColor, fgPoint) - solid brush with selected color and size

Methods

__add__(...)
x.__add__(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.
__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__(n) <==> x*n
__ne__(...)
x.__ne__(y) <==> x!=y
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(n) <==> n*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)
asDict(...)
represent object as dictionary
asTuple(...)
represent object as tuple
isBlack(...)
bool isBlack() - return true if brush is black
isTransparent(...)
bool isTransparent() - return true if brush is transparent

Static methods

black(...)
fgBrush black() - get black solid brush
transparent(...)
fgBrush transparent() - get transparent solid brush

Descriptors

kind
('Empty'/'Solid'/'Gradient') brush type
size
(fgPoint) brush size by x and y axis
solid
(fgColor) brush color

Attributes

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

asDict

fontgate.fgBrush.asDict = asDict(...)
represent object as dictionary

asTuple

fontgate.fgBrush.asTuple = asTuple(...)
represent object as tuple

black

fontgate.fgBrush.black = black(...)
fgBrush black() - get black solid brush

isBlack

fontgate.fgBrush.isBlack = isBlack(...)
bool isBlack() - return true if brush is black

isTransparent

fontgate.fgBrush.isTransparent = isTransparent(...)
bool isTransparent() - return true if brush is transparent

kind

fontgate.fgBrush.kind
('Empty'/'Solid'/'Gradient') brush type

size

fontgate.fgBrush.size
(fgPoint) brush size by x and y axis

solid

fontgate.fgBrush.solid
(fgColor) brush color

transparent

fontgate.fgBrush.transparent = transparent(...)
fgBrush transparent() - get transparent solid brush