Skip to content

fontlab.flCanvas · declarations 004

Back to fontlab.flCanvas

select

select() -> Any

select()

selectNode

selectNode(arg0: flNodeInfo) -> Any

selectNode(flNodeInfo)

Adds a single node to the current selection.

Source: FontLab Proteus API documentation

selectNodes

selectNodes(*args: Any, **kwargs: Any) -> Any

selectNodes(QList)

Selects a set of nodes, adding them to the current selection.

Source: FontLab Proteus API documentation

selected instance-attribute

selected: Any

bool

selectedNodes

selectedNodes() -> list[flNodeInfo]

QList selectedNodes()

Returns info for all selected nodes as flNodeInfo objects. This is usually what you want when you need to know which nodes the user has selected.

Source: FontLab Proteus API documentation

selection

selection() -> list[flVisualItem]

QList selection()

Returns all currently selected visual items (shapes, nodes, etc.).

Source: FontLab Proteus API documentation

setCursor

setCursor(arg0: QCursor) -> Any

setCursor(QCursor)

Sets the canvas cursor to a Qt cursor object.

Source: FontLab Proteus API documentation

setCursorId

setCursorId(CursorId: Any) -> Any

setCursorId(CursorId)

Sets the canvas cursor using a FontLab CursorId constant.

Source: FontLab Proteus API documentation

setSelectedNodes

setSelectedNodes(*args: Any, **kwargs: Any) -> Any

setSelectedNodes(QList, bool )

Replaces the current node selection entirely.

Source: FontLab Proteus API documentation

show

show() -> Any

show()

slantTransform

slantTransform(glyph_info: flGlyphInfo) -> QTransform

QTransform slantTransform(flGlyphInfo glyph_info)

Returns the italic slant transform for the given glyph at the current view settings. Used when drawing overlays that should respect the italic angle.

Source: FontLab Proteus API documentation

textBlocks

textBlocks() -> list[flTextBlock]

QList textBlocks()

Returns all text block items currently on this canvas.

Source: FontLab Proteus API documentation

transform instance-attribute

transform: Any

QTransform

unselect

unselect() -> Any

unselect()

unselectAll

unselectAll() -> bool

bool unselectAll()

Deselects everything — nodes, shapes, guidelines. Returns True if anything was deselected.

Source: FontLab Proteus API documentation

unselectAllNodes

unselectAllNodes() -> bool

bool unselectAllNodes()

Deselects only nodes, leaving shape selection intact.

Source: FontLab Proteus API documentation

updateCanvasRectA

updateCanvasRectA(arg0: QRectF) -> Any

updateCanvasRectA(QRectF)

Alternative canvas rect update path.

Source: FontLab Proteus API documentation

updateMousePos

updateMousePos(arg0: QPoint) -> Any

updateMousePos(QPoint)

Updates the internally tracked mouse position.

Source: FontLab Proteus API documentation

updateScreenRect

updateScreenRect(arg0: QRectF) -> Any

updateScreenRect(QRectF)

Marks a canvas-coordinate rectangle as dirty (needs repaint).

Source: FontLab Proteus API documentation

updateScreenRegion

updateScreenRegion(arg0: QRegion) -> Any

updateScreenRegion(QRegion)

Marks a screen region (by Qt region) as needing repaint.

Source: FontLab Proteus API documentation

updateViewRect

updateViewRect() -> Any

updateViewRect()

Recalculates the visible view rectangle after zoom or scroll changes.

Source: FontLab Proteus API documentation

updateViewport

updateViewport() -> Any

updateViewport()

Triggers a viewport refresh.

Source: FontLab Proteus API documentation

viewPoint instance-attribute

viewPoint: Any

QPointF

The current scroll/pan position — the canvas origin in viewport coordinates. Changing this scrolls the view.

Source: FontLab Proteus API documentation

viewPort instance-attribute

viewPort: Any

QWidget*

The Qt viewport widget this canvas renders into.

Source: FontLab Proteus API documentation

viewPortHasFocus

viewPortHasFocus() -> bool

bool viewPortHasFocus()

Returns True if the viewport widget currently has keyboard focus.

Source: FontLab Proteus API documentation

viewPortRect

viewPortRect() -> QRect

QRect viewPortRect()

Returns the viewport widget's rectangle in screen pixel coordinates.

Source: FontLab Proteus API documentation

viewRect

viewRect() -> QRectF

QRectF viewRect()

Returns the currently visible rectangle in canvas (screen pixel) coordinates.

Source: FontLab Proteus API documentation

viewTransform instance-attribute

viewTransform: Any

flTransform

The full view transform, including zoom scale and italic slant.

Source: FontLab Proteus API documentation

visible instance-attribute

visible: Any

bool

workspace instance-attribute

workspace: Any

flWorkspace

The workspace that owns this canvas.

Source: FontLab Proteus API documentation

zoomTo

zoomTo(canvas_rect: QRectF) -> Any

zoomTo(QPointF canvas_point, double scale, ViewPointAlignment=vpCenter) | zoomTo(QRectF canvas_rect)

Zooms to a specific point at a specific scale, or zooms to fit a given rectangle. The ViewPointAlignment controls which part of the viewport the anchor point maps to.

Source: FontLab Proteus API documentation

zoomToReaded

zoomToReaded() -> Any

zoomToReaded()

Restores the previously saved zoom level.

Source: FontLab Proteus API documentation