pub struct Slice9 {
pub center_x: i32,
pub center_y: i32,
pub center_width: u32,
pub center_height: u32,
}
Expand description
A devision of a Slice into nine regions for 9-slice scaling.
Fields§
§center_x: i32
X position of the center area (relative to slice bounds).
center_y: i32
Y position of the center area (relative to slice bounds).
center_width: u32
Width of the center area.
center_height: u32
Height of the center area.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slice9
impl RefUnwindSafe for Slice9
impl Send for Slice9
impl Sync for Slice9
impl Unpin for Slice9
impl UnwindSafe for Slice9
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