Function zng::layout::rotate

source ยท
pub fn rotate(
    child: impl UiNode,
    angle: impl IntoVar<AngleRadian>,
) -> impl UiNode
Expand description

P Rotate transform.

This property is a shorthand way of setting transform to new_rotate(angle) using variable mapping.

The rotation is done around the transform_origin in 2D.