

<a name="fontgate.fgBrush"></a>

# `fgBrush`


<dt class="class"><h2><span class="class-name">fontgate.fgBrush</span> = <a name="fontgate.fgBrush" href="#fontgate.fgBrush">class fgBrush</a>(<a href="./__builtin__.html#object">object</a>)</h2></dt><dd class="class"><dd>


<pre class="doc" markdown="0">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</pre>


</dd><h4 class="head-methods">Methods </h4><dl class="function"><dt><a name="fgBrush-__add__" href="#fgBrush-__add__"><span class="function-name">__add__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__add__">__add__</a>(y) <==> x+y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__delattr__" href="#fgBrush-__delattr__"><span class="function-name">__delattr__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__delattr__">__delattr__</a>('name') <==> del x.name</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__delitem__" href="#fgBrush-__delitem__"><span class="function-name">__delitem__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__delitem__">__delitem__</a>(y) <==> del x[y]</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__delslice__" href="#fgBrush-__delslice__"><span class="function-name">__delslice__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__delslice__">__delslice__</a>(i, j) <==> del x[i:j]

Use of negative indices is not supported.</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__eq__" href="#fgBrush-__eq__"><span class="function-name">__eq__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__eq__">__eq__</a>(y) <==> x==y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__ge__" href="#fgBrush-__ge__"><span class="function-name">__ge__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__ge__">__ge__</a>(y) <==> x>=y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__getattribute__" href="#fgBrush-__getattribute__"><span class="function-name">__getattribute__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__getattribute__">__getattribute__</a>('name') <==> x.name</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__getitem__" href="#fgBrush-__getitem__"><span class="function-name">__getitem__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__getitem__">__getitem__</a>(y) <==> x[y]</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__getslice__" href="#fgBrush-__getslice__"><span class="function-name">__getslice__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__getslice__">__getslice__</a>(i, j) <==> x[i:j]

Use of negative indices is not supported.</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__gt__" href="#fgBrush-__gt__"><span class="function-name">__gt__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__gt__">__gt__</a>(y) <==> x>y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__init__" href="#fgBrush-__init__"><span class="function-name">__init__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__le__" href="#fgBrush-__le__"><span class="function-name">__le__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__le__">__le__</a>(y) <==> x<=y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__len__" href="#fgBrush-__len__"><span class="function-name">__len__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__len__">__len__</a>() <==> len(x)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__lt__" href="#fgBrush-__lt__"><span class="function-name">__lt__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__lt__">__lt__</a>(y) <==> x<y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__mul__" href="#fgBrush-__mul__"><span class="function-name">__mul__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__mul__">__mul__</a>(n) <==> x*n</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__ne__" href="#fgBrush-__ne__"><span class="function-name">__ne__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__ne__">__ne__</a>(y) <==> x!=y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__repr__" href="#fgBrush-__repr__"><span class="function-name">__repr__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__repr__">__repr__</a>() <==> repr(x)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__rmul__" href="#fgBrush-__rmul__"><span class="function-name">__rmul__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__rmul__">__rmul__</a>(n) <==> n*x</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__setattr__" href="#fgBrush-__setattr__"><span class="function-name">__setattr__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__setattr__">__setattr__</a>('name', value) <==> x.name = value</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__setitem__" href="#fgBrush-__setitem__"><span class="function-name">__setitem__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__setitem__">__setitem__</a>(i, y) <==> x[i]=y</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__setslice__" href="#fgBrush-__setslice__"><span class="function-name">__setslice__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__setslice__">__setslice__</a>(i, j, y) <==> x[i:j]=y

Use  of negative indices is not supported.</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-__str__" href="#fgBrush-__str__"><span class="function-name">__str__</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">x.<a href="#fontgate.fgBrush-__str__">__str__</a>() <==> str(x)</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-asDict" href="#fgBrush-asDict"><span class="function-name">asDict</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">represent object as dictionary</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-asTuple" href="#fgBrush-asTuple"><span class="function-name">asTuple</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">represent object as tuple</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-isBlack" href="#fgBrush-isBlack"><span class="function-name">isBlack</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool <a href="#fontgate.fgBrush-isBlack">isBlack</a>() - return true if brush is black</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-isTransparent" href="#fgBrush-isTransparent"><span class="function-name">isTransparent</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool <a href="#fontgate.fgBrush-isTransparent">isTransparent</a>() - return true if brush is transparent</pre>

</dd></dl>

  <h4 class="head-static-methods">Static methods </h4><dl class="function"><dt><a name="fgBrush-black" href="#fgBrush-black"><span class="function-name">black</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgBrush <a href="#fontgate.fgBrush-black">black</a>() - get black solid brush</pre>

</dd></dl>
<dl class="function"><dt><a name="fgBrush-transparent" href="#fgBrush-transparent"><span class="function-name">transparent</span></a><span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgBrush <a href="#fontgate.fgBrush-transparent">transparent</a>() - get transparent solid brush</pre>

</dd></dl>

  <h4 class="head-desc">Descriptors </h4><dl class="descriptor"><dt>kind</dt>
<dd>

<pre class="doc" markdown="0">('Empty'/'Solid'/'Gradient') brush type</pre>

</dd>
</dl>
<dl class="descriptor"><dt>size</dt>
<dd>

<pre class="doc" markdown="0">(fgPoint) brush size by x and y axis</pre>

</dd>
</dl>
<dl class="descriptor"><dt>solid</dt>
<dd>

<pre class="doc" markdown="0">(fgColor) brush color</pre>

</dd>
</dl>

  <h4 class="head-attrs">Attributes </h4><dl><dt><span class="other-name">__new__</span> = &lt;built-in method __new__ of type object&gt;<dd>

<pre class="doc" markdown="0">T.<a href="#fontgate.fgBrush-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</pre>

</dd></dl>
</dd>


<a name="fontgate.fgBrush.asDict"></a>

## `asDict`


<dl class="function"><dt><a name="-fontgate.fgBrush.asDict" href="#-fontgate.fgBrush.asDict"><span class="function-name">fontgate.fgBrush.asDict</span></a> = asDict<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">represent object as dictionary</pre>

</dd></dl>



<a name="fontgate.fgBrush.asTuple"></a>

## `asTuple`


<dl class="function"><dt><a name="-fontgate.fgBrush.asTuple" href="#-fontgate.fgBrush.asTuple"><span class="function-name">fontgate.fgBrush.asTuple</span></a> = asTuple<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">represent object as tuple</pre>

</dd></dl>



<a name="fontgate.fgBrush.black"></a>

## `black`


<dl class="function"><dt><a name="-fontgate.fgBrush.black" href="#-fontgate.fgBrush.black"><span class="function-name">fontgate.fgBrush.black</span></a> = black<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgBrush black() - get black solid brush</pre>

</dd></dl>



<a name="fontgate.fgBrush.isBlack"></a>

## `isBlack`


<dl class="function"><dt><a name="-fontgate.fgBrush.isBlack" href="#-fontgate.fgBrush.isBlack"><span class="function-name">fontgate.fgBrush.isBlack</span></a> = isBlack<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool isBlack() - return true if brush is black</pre>

</dd></dl>



<a name="fontgate.fgBrush.isTransparent"></a>

## `isTransparent`


<dl class="function"><dt><a name="-fontgate.fgBrush.isTransparent" href="#-fontgate.fgBrush.isTransparent"><span class="function-name">fontgate.fgBrush.isTransparent</span></a> = isTransparent<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">bool isTransparent() - return true if brush is transparent</pre>

</dd></dl>



<a name="fontgate.fgBrush.kind"></a>

## `kind`


<dl class="descriptor"><dt>fontgate.fgBrush.kind</dt>
<dd>

<pre class="doc" markdown="0">('Empty'/'Solid'/'Gradient') brush type</pre>

</dd>
</dl>



<a name="fontgate.fgBrush.size"></a>

## `size`


<dl class="descriptor"><dt>fontgate.fgBrush.size</dt>
<dd>

<pre class="doc" markdown="0">(fgPoint) brush size by x and y axis</pre>

</dd>
</dl>



<a name="fontgate.fgBrush.solid"></a>

## `solid`


<dl class="descriptor"><dt>fontgate.fgBrush.solid</dt>
<dd>

<pre class="doc" markdown="0">(fgColor) brush color</pre>

</dd>
</dl>



<a name="fontgate.fgBrush.transparent"></a>

## `transparent`


<dl class="function"><dt><a name="-fontgate.fgBrush.transparent" href="#-fontgate.fgBrush.transparent"><span class="function-name">fontgate.fgBrush.transparent</span></a> = transparent<span class="argspec">(...)</span></dt><dd>

<pre class="doc" markdown="0">fgBrush transparent() - get transparent solid brush</pre>

</dd></dl>

