Skip to content

fontlab.flLayerInfo · declarations 001

Back to fontlab.flLayerInfo

brectOnCanvas

brectOnCanvas() -> QRectF

QRectF brectOnCanvas()

Returns the canvas-space bounding rectangle of everything on this layer — all shapes, their composites, and any bounds they contribute. Use this as the repaint rect when something on the layer changes, or to compute a "zoom to fit" rectangle.

Source: FontLab Proteus API documentation

createInstance

createInstance() -> flLayerInfo

flLayerInfo createInstance()

Factory. Creates a detached flLayerInfo. Attach a layer via the layer property before calling any other methods.

Source: FontLab Proteus API documentation

layer instance-attribute

layer: Any

flLayer

The underlying flLayer model object. Assign a layer to this info before calling brectOnCanvas().

Source: FontLab Proteus API documentation