zng_wgt_image::border

Function border_img

source
pub fn border_img(
    child: impl UiNode,
    widths: impl IntoVar<SideOffsets>,
    source: impl IntoVar<ImageSource>,
    slices: impl IntoVar<SideOffsets>,
) -> impl UiNode
Expand description

P 9-patch image border.

The source image is sliced by slices and projected onto widths in the widget layout.

See also border_img_repeat and border_img_fill.