Function zng::image::img_repeat_spacing

source ยท
pub fn img_repeat_spacing(
    child: impl UiNode,
    spacing: impl IntoVar<Size>,
) -> impl UiNode
Expand description

P Sets the spacing between copies of the image if it is repeated.

Relative lengths are computed on the size of a single repeated tile image, so 100.pct() is skips an entire image of space. The leftover size is set to the space taken by tile images that do not fully fit inside the clip area, 1.lft() will insert space to cause only fully visible tiles to remain on screen.

This property sets the IMAGE_REPEAT_SPACING_VAR.