pub struct NineSliceLines {
pub x: [f32; 4],
pub y: [f32; 4],
pub u: [f32; 4],
pub v: [f32; 4],
}Expand description
The four slice lines of a Nine-Slice part — SsNines::updatePoints.
x / y are box fractions (0 = left / top edge, 1 = right / bottom
edge) so the caller can place them inside whatever local-space box the
pivot produced; u / v are cellmap texture-pixel coordinates.
Fields§
§x: [f32; 4]§y: [f32; 4]§u: [f32; 4]§v: [f32; 4]Trait Implementations§
Source§impl Clone for NineSliceLines
impl Clone for NineSliceLines
impl Copy for NineSliceLines
Source§impl Debug for NineSliceLines
impl Debug for NineSliceLines
Source§impl PartialEq for NineSliceLines
impl PartialEq for NineSliceLines
impl StructuralPartialEq for NineSliceLines
Auto Trait Implementations§
impl Freeze for NineSliceLines
impl RefUnwindSafe for NineSliceLines
impl Send for NineSliceLines
impl Sync for NineSliceLines
impl Unpin for NineSliceLines
impl UnsafeUnpin for NineSliceLines
impl UnwindSafe for NineSliceLines
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more