Skip to content

fontlabapp.qt.numeric · declarations 001

Back to fontlabapp.qt.numeric

STEPS module-attribute

STEPS

position

position(value: float, minimum: float, span: float, steps: int) -> float

Convert without regrouping arithmetic, rounding, clamping or zero guards.

set_position

set_position(set_value: Callable[[int], None], position: float) -> None

Banker's-round once before a native write; preserve setter failures.

set_step_range

set_step_range(set_range: Callable[[int, int], None], steps: int) -> None

Set the original zero-based Qt range; zero steps also represents busy.

value_at

value_at(minimum: float, position: float, span: float, steps: int) -> float

Convert integer Qt positions with the original operation association.