Skip to main content

Module layer_transform

Module layer_transform 

Source

Functions§

apply_layer_affine_to_point
Point counterpart of apply_layer_affine_to_rect: scale about the layer pivot, then translate. Rotation/perspective are deliberately excluded — the affine space is the one SDF shapes are evaluated in, with rotation carried by the deformed quad instead.
apply_layer_affine_to_rect
Scales and translates a rectangle around the layer’s transform origin.
apply_layer_to_quad
Transforms a rectangle’s four corners through scale, rotation and perspective.
apply_layer_to_rect
Returns the axis-aligned bounds after the complete layer transform.
layer_transform_to_parent
Combines a graphics layer with the node’s placement in its parent.
layer_transform_to_window
Extends an ancestor mapping from untransformed layout coordinates to window coordinates with this node’s graphics layer. origin and bounds describe the node before any ancestor transforms; bounds is relative to origin.
layer_uniform_scale
Returns the smaller of the layer’s horizontal and vertical scales.