Skip to content

# `flShapeData`

## fontlab.flShapeData = class flShapeData(object)

      flShapeData representation

      Constructors:
        flShapeData()
        flShapeData(flObject)

#### Methods

__delattr__(...)

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

__eq__(...)

      x.__eq__(y) <==> x==y

__ge__(...)

      x.__ge__(y) <==> x>=y

__getattribute__(...)

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

__gt__(...)

      x.__gt__(y) <==> x>y

__init__(...)

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

__le__(...)

      x.__le__(y) <==> x<=y

__lt__(...)

      x.__lt__(y) <==> x

__ne__(...)

      x.__ne__(y) <==> x!=y

__repr__(...)

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

__setattr__(...)

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

addContour(...)

      addContour(flContour)

addContours(...)

      addContours(list(flContour))

arrangeContours(...)

      bool arrangeContours()

assignContours(...)

      QMap assignContours(list(flContour)) | Nothing assignContours(fgShape)

bindDependencies(...)

      bindDependencies()

changed(...)

      changed()

checkInitHistoryState(...)

      checkInitHistoryState(uint history_ix)

clearAboveHistory(...)

      clearAboveHistory(uint history_ix)

clearContours(...)

      clearContours()

clearFlag(...)

      clearFlag(uint f)

clearFlags(...)

      clearFlags()

clearIncludesList(...)

      clearIncludesList()

clone(...)

      Clone the object

createHistoryState(...)

      createHistoryState(uint history_ix)

currentHistoryState(...)

      currentHistoryIx()

flag(...)

      flag(uint f)

getProperties(...)

      Get object's properties list

getProperty(...)

      getProperty('key') - get object property by 'key' or number

getPropertyFloat(...)

      getPropertyFloat('key') - get float object property by 'key'

getPropertyInt(...)

      getPropertyInt('key') - get int object property by 'key'

goDown(...)

      bool goDown(flShape)

goUp(...)

      bool goUp(flShape)

hasHistoryState(...)

      hasHistoryState(uint history_ix)

historyStates(...)

      historyStates(bool accepted_state)

includesList(...)

      list(flShape) includesList()

independedAll(...)

      independedAll()

initialHistoryState(...)

      initialHistoryIx()

isEqual(...)

      isEqual(flObject)

prepareTransformationData(...)

      prepareTransformationData()

release(...)

      release()

remove(...)

      remove([flObject])

removeAnchor(...)

      removeAnchor(flAnchor)

removeChild(...)

      removeChild(flObject)

removeContour(...)

      removeContour(flContour)

removeProperty(...)

      removeProperty('key')

resetTransformationData(...)

      resetTransformationData()

restoreHistoryState(...)

      restoreHistoryState(uint history_ix)

sendToBack(...)

      bool sendToBack(flShape)

sendToFront(...)

      bool sendToFront(flShape)

setFlag(...)

      setFlag(uint f [, bool value])

setProperty(...)

      setProperty('key', value) - set object property by 'key' or number

setPropertyFloat(...)

      setPropertyFloat('key', value) - set float object property by 'key'

setPropertyInt(...)

      setPropertyInt('key', value) - set int object property by 'key'

sortContours(...)

      sortContours(bool desc)

tag(...)

      tag([string])

takeIncludesList(...)

      list(flShape) takeIncludesList()

update(...)

      update()

#### Static methods

cloneObject(...)

      flObject cloneObject(const flObject&);

createObject(...)

      flObject/Nothing createObject(int);

haveObject(...)

      bool haveObject(uint);

instanceType(...)

      int instanceType();

#### Descriptors

builder

      flObject builder()

componentGlyph

      string

componentLayer

      string

contours

      list(flContour) contours()

hasChanges

      bool

hasHistoryStates

      bool

id

      object id

includes

      flObjectsList includes()

isChanged

      bool

isComponent

      bool

isComposite

      bool

isNull

      bool

isPresent

      bool

isReleased

      bool

isValid

      bool

name

      object name

note

      string

refCnt

      object references count

referenceCount

      int

segments

      list(CurveEx) segments()

shapeType

      ShapeType shapeType()

type

      object type

#### Attributes

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

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

flObjectFlags = {'ofAnchored': 64, 'ofChanged': 2, 'ofHistory': 128, 'ofIgnore': 8, 'ofIgnoreChanges': 4, 'ofPassive': 16, 'ofReleased': 1, 'ofSlowUpdate': 32}

## `addContour`

fontlab.flShapeData.addContour = addContour(...)

      addContour(flContour)

## `addContours`

fontlab.flShapeData.addContours = addContours(...)

      addContours(list(flContour))

## `arrangeContours`

fontlab.flShapeData.arrangeContours = arrangeContours(...)

      bool arrangeContours()

## `assignContours`

fontlab.flShapeData.assignContours = assignContours(...)

      QMap assignContours(list(flContour)) | Nothing assignContours(fgShape)

## `bindDependencies`

fontlab.flShapeData.bindDependencies = bindDependencies(...)

      bindDependencies()

## `builder`

fontlab.flShapeData.builder

      flObject builder()

## `changed`

fontlab.flShapeData.changed = changed(...)

      changed()

## `checkInitHistoryState`

fontlab.flShapeData.checkInitHistoryState = checkInitHistoryState(...)

      checkInitHistoryState(uint history_ix)

## `clearAboveHistory`

fontlab.flShapeData.clearAboveHistory = clearAboveHistory(...)

      clearAboveHistory(uint history_ix)

## `clearContours`

fontlab.flShapeData.clearContours = clearContours(...)

      clearContours()

## `clearFlag`

fontlab.flShapeData.clearFlag = clearFlag(...)

      clearFlag(uint f)

## `clearFlags`

fontlab.flShapeData.clearFlags = clearFlags(...)

      clearFlags()

## `clearIncludesList`

fontlab.flShapeData.clearIncludesList = clearIncludesList(...)

      clearIncludesList()

## `clone`

fontlab.flShapeData.clone = clone(...)

      Clone the object

## `cloneObject`

fontlab.flShapeData.cloneObject = cloneObject(...)

      flObject cloneObject(const flObject&);

## `componentGlyph`

fontlab.flShapeData.componentGlyph

      string

## `componentLayer`

fontlab.flShapeData.componentLayer

      string

## `contours`

fontlab.flShapeData.contours

      list(flContour) contours()

## `createHistoryState`

fontlab.flShapeData.createHistoryState = createHistoryState(...)

      createHistoryState(uint history_ix)

## `createObject`

fontlab.flShapeData.createObject = createObject(...)

      flObject/Nothing createObject(int);

## `currentHistoryState`

fontlab.flShapeData.currentHistoryState = currentHistoryState(...)

      currentHistoryIx()

## `flag`

fontlab.flShapeData.flag = flag(...)

      flag(uint f)

## `flObjectFlags`

fontlab.flShapeData.flObjectFlags = {'ofAnchored': 64, 'ofChanged': 2, 'ofHistory': 128, 'ofIgnore': 8, 'ofIgnoreChanges': 4, 'ofPassive': 16, 'ofReleased': 1, 'ofSlowUpdate': 32}

## `getProperties`

fontlab.flShapeData.getProperties = getProperties(...)

      Get object's properties list

## `getProperty`

fontlab.flShapeData.getProperty = getProperty(...)

      getProperty('key') - get object property by 'key' or number

## `getPropertyFloat`

fontlab.flShapeData.getPropertyFloat = getPropertyFloat(...)

      getPropertyFloat('key') - get float object property by 'key'

## `getPropertyInt`

fontlab.flShapeData.getPropertyInt = getPropertyInt(...)

      getPropertyInt('key') - get int object property by 'key'

## `goDown`

fontlab.flShapeData.goDown = goDown(...)

      bool goDown(flShape)

## `goUp`

fontlab.flShapeData.goUp = goUp(...)

      bool goUp(flShape)

## `hasChanges`

fontlab.flShapeData.hasChanges

      bool

## `hasHistoryState`

fontlab.flShapeData.hasHistoryState = hasHistoryState(...)

      hasHistoryState(uint history_ix)

## `hasHistoryStates`

fontlab.flShapeData.hasHistoryStates

      bool

## `haveObject`

fontlab.flShapeData.haveObject = haveObject(...)

      bool haveObject(uint);

## `historyStates`

fontlab.flShapeData.historyStates = historyStates(...)

      historyStates(bool accepted_state)

## `id`

fontlab.flShapeData.id

      object id

## `includes`

fontlab.flShapeData.includes

      flObjectsList includes()

## `includesList`

fontlab.flShapeData.includesList = includesList(...)

      list(flShape) includesList()

## `independedAll`

fontlab.flShapeData.independedAll = independedAll(...)

      independedAll()

## `initialHistoryState`

fontlab.flShapeData.initialHistoryState = initialHistoryState(...)

      initialHistoryIx()

## `instanceType`

fontlab.flShapeData.instanceType = instanceType(...)

      int instanceType();

## `isChanged`

fontlab.flShapeData.isChanged

      bool

## `isComponent`

fontlab.flShapeData.isComponent

      bool

## `isComposite`

fontlab.flShapeData.isComposite

      bool

## `isEqual`

fontlab.flShapeData.isEqual = isEqual(...)

      isEqual(flObject)

## `isNull`

fontlab.flShapeData.isNull

      bool

## `isPresent`

fontlab.flShapeData.isPresent

      bool

## `isReleased`

fontlab.flShapeData.isReleased

      bool

## `isValid`

fontlab.flShapeData.isValid

      bool

## `name`

fontlab.flShapeData.name

      object name

## `note`

fontlab.flShapeData.note

      string

## `prepareTransformationData`

fontlab.flShapeData.prepareTransformationData = prepareTransformationData(...)

      prepareTransformationData()

## `refCnt`

fontlab.flShapeData.refCnt

      object references count

## `referenceCount`

fontlab.flShapeData.referenceCount

      int

## `release`

fontlab.flShapeData.release = release(...)

      release()

## `remove`

fontlab.flShapeData.remove = remove(...)

      remove([flObject])

## `removeAnchor`

fontlab.flShapeData.removeAnchor = removeAnchor(...)

      removeAnchor(flAnchor)

## `removeChild`

fontlab.flShapeData.removeChild = removeChild(...)

      removeChild(flObject)

## `removeContour`

fontlab.flShapeData.removeContour = removeContour(...)

      removeContour(flContour)

## `removeProperty`

fontlab.flShapeData.removeProperty = removeProperty(...)

      removeProperty('key')

## `resetTransformationData`

fontlab.flShapeData.resetTransformationData = resetTransformationData(...)

      resetTransformationData()

## `restoreHistoryState`

fontlab.flShapeData.restoreHistoryState = restoreHistoryState(...)

      restoreHistoryState(uint history_ix)

## `segments`

fontlab.flShapeData.segments

      list(CurveEx) segments()

## `sendToBack`

fontlab.flShapeData.sendToBack = sendToBack(...)

      bool sendToBack(flShape)

## `sendToFront`

fontlab.flShapeData.sendToFront = sendToFront(...)

      bool sendToFront(flShape)

## `setFlag`

fontlab.flShapeData.setFlag = setFlag(...)

      setFlag(uint f [, bool value])

## `setProperty`

fontlab.flShapeData.setProperty = setProperty(...)

      setProperty('key', value) - set object property by 'key' or number

## `setPropertyFloat`

fontlab.flShapeData.setPropertyFloat = setPropertyFloat(...)

      setPropertyFloat('key', value) - set float object property by 'key'

## `setPropertyInt`

fontlab.flShapeData.setPropertyInt = setPropertyInt(...)

      setPropertyInt('key', value) - set int object property by 'key'

## `shapeType`

fontlab.flShapeData.shapeType

      ShapeType shapeType()

## `sortContours`

fontlab.flShapeData.sortContours = sortContours(...)

      sortContours(bool desc)

## `tag`

fontlab.flShapeData.tag = tag(...)

      tag([string])

## `takeIncludesList`

fontlab.flShapeData.takeIncludesList = takeIncludesList(...)

      list(flShape) takeIncludesList()

## `type`

fontlab.flShapeData.type

      object type

## `update`

fontlab.flShapeData.update = update(...)

      update()