Function zng::layout::x
source · pub fn x(child: impl UiNode, x: impl IntoVar<Length>) -> impl UiNode
Expand description
P
Offset on the x axis.
Relative values are computed from the constraints maximum bounded width.
§offset
You can set both x
and y
at the same time using the offset
property.