pub fn compute_nineslice_lines(
size: (f32, f32),
cell_rect: (f32, f32, f32, f32),
margins: (f32, f32, f32, f32),
) -> NineSliceLinesExpand description
Computes the slice lines for a Nine-Slice part.
size: (width, height) of the part — must be non-zero.
cell_rect: (left, top, right, bottom) of the source cell, in texture pixels.
margins: (left, top, right, bottom) authored margins, in source pixels.