flTextBlock

fontlab.flTextBlock = class flTextBlock(object)

flTextBlock representation

Constructors:
  flTextBlock()
  flTextBlock(flObject)
  flTextBlock(flTextBlock)
  flTextBlock(flPackage, flTextObject[, int font_size=42[, int formatMode=tbfText[, QRectF canvas_rect=QRectF(0,0, 800,600)]]])

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
activeObjectChanged(...)
flNotifier activeObjectChanged()
activeRowRect(...)
QRectF activeRowRect()
addFeature(...)
addFeature(QString feature)
changed(...)
changed()
charsCount(...)
int charsCount()
checkInitHistoryState(...)
checkInitHistoryState(uint history_ix)
clearAboveHistory(...)
clearAboveHistory(uint history_ix)
clearFlag(...)
clearFlag(uint f)
clearFlags(...)
clearFlags()
clone(...)
Clone the object
createHistoryState(...)
createHistoryState(uint history_ix)
currentHistoryState(...)
currentHistoryIx()
drawContent(...)
drawContent(QPainter*, flCanvas, QRectF painted_nodes_screen_rect)
features(...)
list(QString) features()
flag(...)
flag(uint f)
formatChanged(...)
flNotifier formatChanged()
getActiveGlyph(...)
flGlyphInfo/Nothing getActiveGlyph()
getAllGlyphs(...)
list(flGlyphInfo)/Nothing getAllGlyphs([int line_index = -1])
getCurrentPosition(...)
QPointF getCurrentPosition()
getGlyphAt(...)
flGlyphInfo/Nothinf getGlyphAt(int glyph_index)
getGlyphInfo(...)
flGlyphInfo/Nothing getGlyphInfo(fgSymbol, &)
getGlyphTransform(...)
QTransform getGlyphTransform(int glyph_index)
getGlyphsInLine(...)
list(flGlyphInfo)/Nothing getGlyphsInLine(flGlyphInfo | int lineIndex)
getHitGlyph(...)
flGlyphInfo/Nothing getHitGlyph(QPointF canvas_pos)
getHitToShapeGlyph(...)
flGlyphInfo/Nothing getHitToShapeGlyph(QPointF canvas_pos)
getHitToShapes(...)
list(flContourInfo)/Nothing getHitToShapes(QPointF canvas_pos)
getIntersectsGlyphs(...)
list(flGlyphInfo)/Nothing getIntersectsGlyphs(QRectF canvas_rect)
getLineIndex(...)
int getLineIndex(int glyph_index)
getLineLocation(...)
int getLineLocation(flGlyphInfo glyph_info)
getMouseHitNode(...)
flNodeInfo/Nothing getMouseHitNode()
getNearbyGlyphs(...)
list(flGlyphInfo)/Nothing getNearbyGlyphs(QPointF text_block_point, double max_dist)
getNextGlyphInLine(...)
flGlyphInfo/Nothing getNextGlyphInLine(int glyph_index)
getPrevGlyphInLine(...)
flGlyphInfo/Nothing getPrevGlyphInLine(int glyph_index)
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'
getScvNode(...)
flNodeInfo/Nothing getScvNode()
getSelectedCharacters(...)
fgSymbolList/Nothing getSelectedCharacters()
getSelectedGlyphs(...)
list(flGlyphInfo)/Nothing getSelectedGlyphs()
glyphsBoundsOnCanvas(...)
QRectF glyphsBoundsOnCanvas(EditMode)
glyphsChanged(...)
glyphsChanged()
glyphsCount(...)
int glyphsCount()
hasHistoryState(...)
hasHistoryState(uint history_ix)
hasHoveredNodeEdit(...)
bool hasHoveredNodeEdit()
haveText(...)
bool haveText()
historyStates(...)
historyStates(bool accepted_state)
hoveredNodeEdit(...)
flNodeInfo hoveredNodeEdit()
hoveredNodeEditDetails(...)
HoveredInfoDetails hoveredNodeEditDetails()
independedAll(...)
independedAll()
init(...)
init(flCanvas& canvas)
initialHistoryState(...)
initialHistoryIx()
isAltPressed(...)
bool isAltPressed()
isEqual(...)
isEqual(flObject)
isFramed(...)
bool isFramed()
isMetaPressed(...)
bool isMetaPressed()
keyPressEvent(...)
bool keyPressEvent(QKeyEvent*)
lastCharIndex(...)
int lastCharIndex()
lastIndex(...)
int lastIndex()
mouseDoubleClickEvent(...)
bool mouseDoubleClickEvent(QMouseEvent*)
mouseMoveEvent(...)
bool mouseMoveEvent(QMouseEvent*)
mousePressEvent(...)
bool mousePressEvent(QMouseEvent*)
mouseReleaseEvent(...)
bool mouseReleaseEvent(QMouseEvent*)
paintedNodesScreenRect(...)
QRectF paintedNodesScreenRect()
paragraphBlock(...)
fgParagraphBlock paragraphBlock()
parentTextBlock(...)
flTextBlock parentTextBlock()
reformat(...)
reformat()
release(...)
release()
remove(...)
remove([flObject])
removeChild(...)
removeChild(flObject)
removeFeature(...)
removeFeature(QString feature)
removeFeatures(...)
removeFeatures()
removeProperty(...)
removeProperty('key')
removedFromCanvas(...)
removedFromCanvas()
restoreHistoryState(...)
restoreHistoryState(uint history_ix)
setActiveGlyph(...)
setActiveGlyph(flGlyphInfo)
setAltPressed(...)
setAltPressed(bool b[, bool redraw = true])
setCheckMouseHoverNode(...)
setCheckMouseHoverNode(bool)
setExclusiveEditing(...)
setExclusiveEditing(bool)
setFeatures(...)
setFeatures(list(QString), bool reformat)
setFixedHeight(...)
setFixedHeight(bool, bool)
setFlag(...)
setFlag(uint f [, bool value])
setFrameSize(...)
setFrameSize(QSizeF canvas_size)
setFrameWidth(...)
setFrameWidth(double)
setLeftMetric(...)
setLeftMetric(flGlyphInfo glyph_info, bool measurement)
setMetaPressed(...)
setMetaPressed(bool b[, bool redraw = true])
setParentTextBlock(...)
setParentTextBlock(flTextBlock)
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'
setRightMetric(...)
setRightMetric(QPointF, flGlyphInfo glyph_info, bool measurement)
setShowCursor(...)
setShowCursor(bool)
setShowNodes(...)
setShowNodes(bool)
setTextBlockMode(...)
setTextBlockMode(EditMode text_block_mode[, QPoint viewport_pos=QPoint()])
symbolList(...)
fgSymbolList symbolList()
tag(...)
tag([string])
textFits(...)
bool textFits()
update(...)
update()
updateSymbols(...)
updateSymbols()
visibleShapes(...)
list(flShape)/Nothing visibleShapes()

Static methods

cloneObject(...)
flObject cloneObject(const flObject&);
createInstance(...)
flTextBlock createInstance()
createObject(...)
flObject/Nothing createObject(int);
haveObject(...)
bool haveObject(uint);
instanceType(...)
int instanceType();

Descriptors

editMode
EditMode
fontSize
int
formatMode
int
frameRect
QRectF
hasChanges
bool
hasHistoryStates
bool
id
object id
initiallySelected
bool
isChanged
bool
isNull
bool
isPresent
bool
isReleased
bool
isValid
bool
kerningProcessing
bool
layoutProcessing
bool
locked
bool
marksProcessing
bool
name
object name
package
flPackage
refCnt
object references count
script
uint
textObject
flTextObject
transform
QTransform
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}

activeObjectChanged

fontlab.flTextBlock.activeObjectChanged = activeObjectChanged(...)
flNotifier activeObjectChanged()

activeRowRect

fontlab.flTextBlock.activeRowRect = activeRowRect(...)
QRectF activeRowRect()

addFeature

fontlab.flTextBlock.addFeature = addFeature(...)
addFeature(QString feature)

changed

fontlab.flTextBlock.changed = changed(...)
changed()

charsCount

fontlab.flTextBlock.charsCount = charsCount(...)
int charsCount()

checkInitHistoryState

fontlab.flTextBlock.checkInitHistoryState = checkInitHistoryState(...)
checkInitHistoryState(uint history_ix)

clearAboveHistory

fontlab.flTextBlock.clearAboveHistory = clearAboveHistory(...)
clearAboveHistory(uint history_ix)

clearFlag

fontlab.flTextBlock.clearFlag = clearFlag(...)
clearFlag(uint f)

clearFlags

fontlab.flTextBlock.clearFlags = clearFlags(...)
clearFlags()

clone

fontlab.flTextBlock.clone = clone(...)
Clone the object

cloneObject

fontlab.flTextBlock.cloneObject = cloneObject(...)
flObject cloneObject(const flObject&);

createHistoryState

fontlab.flTextBlock.createHistoryState = createHistoryState(...)
createHistoryState(uint history_ix)

createInstance

fontlab.flTextBlock.createInstance = createInstance(...)
flTextBlock createInstance()

createObject

fontlab.flTextBlock.createObject = createObject(...)
flObject/Nothing createObject(int);

currentHistoryState

fontlab.flTextBlock.currentHistoryState = currentHistoryState(...)
currentHistoryIx()

drawContent

fontlab.flTextBlock.drawContent = drawContent(...)
drawContent(QPainter*, flCanvas, QRectF painted_nodes_screen_rect)

editMode

fontlab.flTextBlock.editMode
EditMode

features

fontlab.flTextBlock.features = features(...)
list(QString) features()

flag

fontlab.flTextBlock.flag = flag(...)
flag(uint f)

flObjectFlags

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

fontSize

fontlab.flTextBlock.fontSize
int

formatChanged

fontlab.flTextBlock.formatChanged = formatChanged(...)
flNotifier formatChanged()

formatMode

fontlab.flTextBlock.formatMode
int

frameRect

fontlab.flTextBlock.frameRect
QRectF

getActiveGlyph

fontlab.flTextBlock.getActiveGlyph = getActiveGlyph(...)
flGlyphInfo/Nothing getActiveGlyph()

getAllGlyphs

fontlab.flTextBlock.getAllGlyphs = getAllGlyphs(...)
list(flGlyphInfo)/Nothing getAllGlyphs([int line_index = -1])

getCurrentPosition

fontlab.flTextBlock.getCurrentPosition = getCurrentPosition(...)
QPointF getCurrentPosition()

getGlyphAt

fontlab.flTextBlock.getGlyphAt = getGlyphAt(...)
flGlyphInfo/Nothinf getGlyphAt(int glyph_index)

getGlyphInfo

fontlab.flTextBlock.getGlyphInfo = getGlyphInfo(...)
flGlyphInfo/Nothing getGlyphInfo(fgSymbol, &)

getGlyphsInLine

fontlab.flTextBlock.getGlyphsInLine = getGlyphsInLine(...)
list(flGlyphInfo)/Nothing getGlyphsInLine(flGlyphInfo | int lineIndex)

getGlyphTransform

fontlab.flTextBlock.getGlyphTransform = getGlyphTransform(...)
QTransform getGlyphTransform(int glyph_index)

getHitGlyph

fontlab.flTextBlock.getHitGlyph = getHitGlyph(...)
flGlyphInfo/Nothing getHitGlyph(QPointF canvas_pos)

getHitToShapeGlyph

fontlab.flTextBlock.getHitToShapeGlyph = getHitToShapeGlyph(...)
flGlyphInfo/Nothing getHitToShapeGlyph(QPointF canvas_pos)

getHitToShapes

fontlab.flTextBlock.getHitToShapes = getHitToShapes(...)
list(flContourInfo)/Nothing getHitToShapes(QPointF canvas_pos)

getIntersectsGlyphs

fontlab.flTextBlock.getIntersectsGlyphs = getIntersectsGlyphs(...)
list(flGlyphInfo)/Nothing getIntersectsGlyphs(QRectF canvas_rect)

getLineIndex

fontlab.flTextBlock.getLineIndex = getLineIndex(...)
int getLineIndex(int glyph_index)

getLineLocation

fontlab.flTextBlock.getLineLocation = getLineLocation(...)
int getLineLocation(flGlyphInfo glyph_info)

getMouseHitNode

fontlab.flTextBlock.getMouseHitNode = getMouseHitNode(...)
flNodeInfo/Nothing getMouseHitNode()

getNearbyGlyphs

fontlab.flTextBlock.getNearbyGlyphs = getNearbyGlyphs(...)
list(flGlyphInfo)/Nothing getNearbyGlyphs(QPointF text_block_point, double max_dist)

getNextGlyphInLine

fontlab.flTextBlock.getNextGlyphInLine = getNextGlyphInLine(...)
flGlyphInfo/Nothing getNextGlyphInLine(int glyph_index)

getPrevGlyphInLine

fontlab.flTextBlock.getPrevGlyphInLine = getPrevGlyphInLine(...)
flGlyphInfo/Nothing getPrevGlyphInLine(int glyph_index)

getProperties

fontlab.flTextBlock.getProperties = getProperties(...)
Get object's properties list

getProperty

fontlab.flTextBlock.getProperty = getProperty(...)
getProperty('key') - get object property by 'key' or number

getPropertyFloat

fontlab.flTextBlock.getPropertyFloat = getPropertyFloat(...)
getPropertyFloat('key') - get float object property by 'key'

getPropertyInt

fontlab.flTextBlock.getPropertyInt = getPropertyInt(...)
getPropertyInt('key') - get int object property by 'key'

getScvNode

fontlab.flTextBlock.getScvNode = getScvNode(...)
flNodeInfo/Nothing getScvNode()

getSelectedCharacters

fontlab.flTextBlock.getSelectedCharacters = getSelectedCharacters(...)
fgSymbolList/Nothing getSelectedCharacters()

getSelectedGlyphs

fontlab.flTextBlock.getSelectedGlyphs = getSelectedGlyphs(...)
list(flGlyphInfo)/Nothing getSelectedGlyphs()

glyphsBoundsOnCanvas

fontlab.flTextBlock.glyphsBoundsOnCanvas = glyphsBoundsOnCanvas(...)
QRectF glyphsBoundsOnCanvas(EditMode)

glyphsChanged

fontlab.flTextBlock.glyphsChanged = glyphsChanged(...)
glyphsChanged()

glyphsCount

fontlab.flTextBlock.glyphsCount = glyphsCount(...)
int glyphsCount()

hasChanges

fontlab.flTextBlock.hasChanges
bool

hasHistoryState

fontlab.flTextBlock.hasHistoryState = hasHistoryState(...)
hasHistoryState(uint history_ix)

hasHistoryStates

fontlab.flTextBlock.hasHistoryStates
bool

hasHoveredNodeEdit

fontlab.flTextBlock.hasHoveredNodeEdit = hasHoveredNodeEdit(...)
bool hasHoveredNodeEdit()

haveObject

fontlab.flTextBlock.haveObject = haveObject(...)
bool haveObject(uint);

haveText

fontlab.flTextBlock.haveText = haveText(...)
bool haveText()

historyStates

fontlab.flTextBlock.historyStates = historyStates(...)
historyStates(bool accepted_state)

hoveredNodeEdit

fontlab.flTextBlock.hoveredNodeEdit = hoveredNodeEdit(...)
flNodeInfo hoveredNodeEdit()

hoveredNodeEditDetails

fontlab.flTextBlock.hoveredNodeEditDetails = hoveredNodeEditDetails(...)
HoveredInfoDetails hoveredNodeEditDetails()

id

fontlab.flTextBlock.id
object id

independedAll

fontlab.flTextBlock.independedAll = independedAll(...)
independedAll()

init

fontlab.flTextBlock.init = init(...)
init(flCanvas& canvas)

initialHistoryState

fontlab.flTextBlock.initialHistoryState = initialHistoryState(...)
initialHistoryIx()

initiallySelected

fontlab.flTextBlock.initiallySelected
bool

instanceType

fontlab.flTextBlock.instanceType = instanceType(...)
int instanceType();

isAltPressed

fontlab.flTextBlock.isAltPressed = isAltPressed(...)
bool isAltPressed()

isChanged

fontlab.flTextBlock.isChanged
bool

isEqual

fontlab.flTextBlock.isEqual = isEqual(...)
isEqual(flObject)

isFramed

fontlab.flTextBlock.isFramed = isFramed(...)
bool isFramed()

isMetaPressed

fontlab.flTextBlock.isMetaPressed = isMetaPressed(...)
bool isMetaPressed()

isNull

fontlab.flTextBlock.isNull
bool

isPresent

fontlab.flTextBlock.isPresent
bool

isReleased

fontlab.flTextBlock.isReleased
bool

isValid

fontlab.flTextBlock.isValid
bool

kerningProcessing

fontlab.flTextBlock.kerningProcessing
bool

keyPressEvent

fontlab.flTextBlock.keyPressEvent = keyPressEvent(...)
bool keyPressEvent(QKeyEvent*)

lastCharIndex

fontlab.flTextBlock.lastCharIndex = lastCharIndex(...)
int lastCharIndex()

lastIndex

fontlab.flTextBlock.lastIndex = lastIndex(...)
int lastIndex()

layoutProcessing

fontlab.flTextBlock.layoutProcessing
bool

locked

fontlab.flTextBlock.locked
bool

marksProcessing

fontlab.flTextBlock.marksProcessing
bool

mouseDoubleClickEvent

fontlab.flTextBlock.mouseDoubleClickEvent = mouseDoubleClickEvent(...)
bool mouseDoubleClickEvent(QMouseEvent*)

mouseMoveEvent

fontlab.flTextBlock.mouseMoveEvent = mouseMoveEvent(...)
bool mouseMoveEvent(QMouseEvent*)

mousePressEvent

fontlab.flTextBlock.mousePressEvent = mousePressEvent(...)
bool mousePressEvent(QMouseEvent*)

mouseReleaseEvent

fontlab.flTextBlock.mouseReleaseEvent = mouseReleaseEvent(...)
bool mouseReleaseEvent(QMouseEvent*)

name

fontlab.flTextBlock.name
object name

package

fontlab.flTextBlock.package
flPackage

paintedNodesScreenRect

fontlab.flTextBlock.paintedNodesScreenRect = paintedNodesScreenRect(...)
QRectF paintedNodesScreenRect()

paragraphBlock

fontlab.flTextBlock.paragraphBlock = paragraphBlock(...)
fgParagraphBlock paragraphBlock()

parentTextBlock

fontlab.flTextBlock.parentTextBlock = parentTextBlock(...)
flTextBlock parentTextBlock()

refCnt

fontlab.flTextBlock.refCnt
object references count

reformat

fontlab.flTextBlock.reformat = reformat(...)
reformat()

release

fontlab.flTextBlock.release = release(...)
release()

remove

fontlab.flTextBlock.remove = remove(...)
remove([flObject])

removeChild

fontlab.flTextBlock.removeChild = removeChild(...)
removeChild(flObject)

removedFromCanvas

fontlab.flTextBlock.removedFromCanvas = removedFromCanvas(...)
removedFromCanvas()

removeFeature

fontlab.flTextBlock.removeFeature = removeFeature(...)
removeFeature(QString feature)

removeFeatures

fontlab.flTextBlock.removeFeatures = removeFeatures(...)
removeFeatures()

removeProperty

fontlab.flTextBlock.removeProperty = removeProperty(...)
removeProperty('key')

restoreHistoryState

fontlab.flTextBlock.restoreHistoryState = restoreHistoryState(...)
restoreHistoryState(uint history_ix)

script

fontlab.flTextBlock.script
uint

setActiveGlyph

fontlab.flTextBlock.setActiveGlyph = setActiveGlyph(...)
setActiveGlyph(flGlyphInfo)

setAltPressed

fontlab.flTextBlock.setAltPressed = setAltPressed(...)
setAltPressed(bool b[, bool redraw = true])

setCheckMouseHoverNode

fontlab.flTextBlock.setCheckMouseHoverNode = setCheckMouseHoverNode(...)
setCheckMouseHoverNode(bool)

setExclusiveEditing

fontlab.flTextBlock.setExclusiveEditing = setExclusiveEditing(...)
setExclusiveEditing(bool)

setFeatures

fontlab.flTextBlock.setFeatures = setFeatures(...)
setFeatures(list(QString), bool reformat)

setFixedHeight

fontlab.flTextBlock.setFixedHeight = setFixedHeight(...)
setFixedHeight(bool, bool)

setFlag

fontlab.flTextBlock.setFlag = setFlag(...)
setFlag(uint f [, bool value])

setFrameSize

fontlab.flTextBlock.setFrameSize = setFrameSize(...)
setFrameSize(QSizeF canvas_size)

setFrameWidth

fontlab.flTextBlock.setFrameWidth = setFrameWidth(...)
setFrameWidth(double)

setLeftMetric

fontlab.flTextBlock.setLeftMetric = setLeftMetric(...)
setLeftMetric(flGlyphInfo glyph_info, bool measurement)

setMetaPressed

fontlab.flTextBlock.setMetaPressed = setMetaPressed(...)
setMetaPressed(bool b[, bool redraw = true])

setParentTextBlock

fontlab.flTextBlock.setParentTextBlock = setParentTextBlock(...)
setParentTextBlock(flTextBlock)

setProperty

fontlab.flTextBlock.setProperty = setProperty(...)
setProperty('key', value) - set object property by 'key' or number

setPropertyFloat

fontlab.flTextBlock.setPropertyFloat = setPropertyFloat(...)
setPropertyFloat('key', value) - set float object property by 'key'

setPropertyInt

fontlab.flTextBlock.setPropertyInt = setPropertyInt(...)
setPropertyInt('key', value) - set int object property by 'key'

setRightMetric

fontlab.flTextBlock.setRightMetric = setRightMetric(...)
setRightMetric(QPointF, flGlyphInfo glyph_info, bool measurement)

setShowCursor

fontlab.flTextBlock.setShowCursor = setShowCursor(...)
setShowCursor(bool)

setShowNodes

fontlab.flTextBlock.setShowNodes = setShowNodes(...)
setShowNodes(bool)

setTextBlockMode

fontlab.flTextBlock.setTextBlockMode = setTextBlockMode(...)
setTextBlockMode(EditMode text_block_mode[, QPoint viewport_pos=QPoint()])

symbolList

fontlab.flTextBlock.symbolList = symbolList(...)
fgSymbolList symbolList()

tag

fontlab.flTextBlock.tag = tag(...)
tag([string])

textFits

fontlab.flTextBlock.textFits = textFits(...)
bool textFits()

textObject

fontlab.flTextBlock.textObject
flTextObject

transform

fontlab.flTextBlock.transform
QTransform

type

fontlab.flTextBlock.type
object type

update

fontlab.flTextBlock.update = update(...)
update()

updateSymbols

fontlab.flTextBlock.updateSymbols = updateSymbols(...)
updateSymbols()

visibleShapes

fontlab.flTextBlock.visibleShapes = visibleShapes(...)
list(flShape)/Nothing visibleShapes()