Skip to content

# `fgShape`

## fontgate.fgShape = class fgShape(object)

      Shape representation

      Constructors:
        fgShape() - default
        fgShape(fgShape) - copy
        fgShape(fgShape, fgShape, float tx, float ty)
        fgShape(fgShape, fgShape, float tx, float ty, int blend_mode)

      Math Operations:
        fgShape + fgShape
        fgShape - fgShape
        fgShape * float

#### Methods

__add__(...)

      x.__add__(y) <==> x+y

__cmp__(...)

      x.__cmp__(y) <==> cmp(x,y)

__delattr__(...)

      x.__delattr__('name') <==> del x.name

__getattribute__(...)

      x.__getattribute__('name') <==> x.name

__init__(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

__mul__(...)

      x.__mul__(y) <==> x*y

__radd__(...)

      x.__radd__(y) <==> y+x

__repr__(...)

      x.__repr__() <==> repr(x)

__rmul__(...)

      x.__rmul__(y) <==> y*x

__rsub__(...)

      x.__rsub__(y) <==> y-x

__setattr__(...)

      x.__setattr__('name', value) <==> x.name = value

__sub__(...)

      x.__sub__(y) <==> x-y

addContour(...)

      fgContour addContour(fgContour)

addShape(...)

      int addShape(fgShape, int mode) ???

applyTransform(...)

      applyTransform()

area(...)

      float area()

assignStyle(...)

      assignStyle(fgShape)

autoInterpolated(...)

      bool autoInterpolated()

autoSmooth(...)

      bool autoSmooth()

boundingBox(...)

      fgRect/Nothing boundingBox(fgMatrix[, bool prepareExport=false])

checkContours(...)

      checkContours()

containsOffPoint(...)

      bool containsOffPoint()

countContours(...)

      int countContours()

countNodes(...)

      int countNodes()

excludeShape(...)

      int excludeShape(fgShape, int mode) ???

hasBody(...)

      bool hasBody()

hasContours(...)

      bool hasContours()

isCompatible(...)

      bool/Nothing isCompatible(fgShape)

removeOverlap(...)

      int removeOverlap()

reverse(...)

      reverse()

sortContours(...)

      sortContours()

subtractShape(...)

      int subtractShape(fgShape, int mode) ???

transform(...)

      transform(fgMatrix)

#### Descriptors

angle

      (float)

body

      (fgBrush)

calligraphic

      (bool)

cap_type

      (int)

contours

      (fgContours)

join_type

      (int)

matrix

      (fgMatrix)

name

      (string)

opacity

      (float)

pen

      (fgBrush)

picture

      (fgBitmap)

width

      (float)

#### Attributes

__new__ = <built-in method __new__ of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

## `addContour`

fontgate.fgShape.addContour = addContour(...)

      fgContour addContour(fgContour)

## `addShape`

fontgate.fgShape.addShape = addShape(...)

      int addShape(fgShape, int mode) ???

## `angle`

fontgate.fgShape.angle

      (float)

## `applyTransform`

fontgate.fgShape.applyTransform = applyTransform(...)

      applyTransform()

## `area`

fontgate.fgShape.area = area(...)

      float area()

## `assignStyle`

fontgate.fgShape.assignStyle = assignStyle(...)

      assignStyle(fgShape)

## `autoInterpolated`

fontgate.fgShape.autoInterpolated = autoInterpolated(...)

      bool autoInterpolated()

## `autoSmooth`

fontgate.fgShape.autoSmooth = autoSmooth(...)

      bool autoSmooth()

## `body`

fontgate.fgShape.body

      (fgBrush)

## `boundingBox`

fontgate.fgShape.boundingBox = boundingBox(...)

      fgRect/Nothing boundingBox(fgMatrix[, bool prepareExport=false])

## `calligraphic`

fontgate.fgShape.calligraphic

      (bool)

## `cap_type`

fontgate.fgShape.cap_type

      (int)

## `checkContours`

fontgate.fgShape.checkContours = checkContours(...)

      checkContours()

## `containsOffPoint`

fontgate.fgShape.containsOffPoint = containsOffPoint(...)

      bool containsOffPoint()

## `contours`

fontgate.fgShape.contours

      (fgContours)

## `countContours`

fontgate.fgShape.countContours = countContours(...)

      int countContours()

## `countNodes`

fontgate.fgShape.countNodes = countNodes(...)

      int countNodes()

## `excludeShape`

fontgate.fgShape.excludeShape = excludeShape(...)

      int excludeShape(fgShape, int mode) ???

## `hasBody`

fontgate.fgShape.hasBody = hasBody(...)

      bool hasBody()

## `hasContours`

fontgate.fgShape.hasContours = hasContours(...)

      bool hasContours()

## `isCompatible`

fontgate.fgShape.isCompatible = isCompatible(...)

      bool/Nothing isCompatible(fgShape)

## `join_type`

fontgate.fgShape.join_type

      (int)

## `matrix`

fontgate.fgShape.matrix

      (fgMatrix)

## `name`

fontgate.fgShape.name

      (string)

## `opacity`

fontgate.fgShape.opacity

      (float)

## `pen`

fontgate.fgShape.pen

      (fgBrush)

## `picture`

fontgate.fgShape.picture

      (fgBitmap)

## `removeOverlap`

fontgate.fgShape.removeOverlap = removeOverlap(...)

      int removeOverlap()

## `reverse`

fontgate.fgShape.reverse = reverse(...)

      reverse()

## `sortContours`

fontgate.fgShape.sortContours = sortContours(...)

      sortContours()

## `subtractShape`

fontgate.fgShape.subtractShape = subtractShape(...)

      int subtractShape(fgShape, int mode) ???

## `transform`

fontgate.fgShape.transform = transform(...)

      transform(fgMatrix)

## `width`

fontgate.fgShape.width

      (float)