pub struct NinePatchInsets {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}Expand description
How far in from each edge of a source image the stretchable middle starts.
The four corners outside these insets are drawn at their own size at every destination size; everything inside grows.
Fields§
§left: f32§top: f32§right: f32§bottom: f32Implementations§
Trait Implementations§
Source§impl Clone for NinePatchInsets
impl Clone for NinePatchInsets
Source§fn clone(&self) -> NinePatchInsets
fn clone(&self) -> NinePatchInsets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NinePatchInsets
Source§impl Debug for NinePatchInsets
impl Debug for NinePatchInsets
Source§impl Default for NinePatchInsets
impl Default for NinePatchInsets
Source§fn default() -> NinePatchInsets
fn default() -> NinePatchInsets
Returns the “default value” for a type. Read more
Source§impl PartialEq for NinePatchInsets
impl PartialEq for NinePatchInsets
impl StructuralPartialEq for NinePatchInsets
Auto Trait Implementations§
impl Freeze for NinePatchInsets
impl RefUnwindSafe for NinePatchInsets
impl Send for NinePatchInsets
impl Sync for NinePatchInsets
impl Unpin for NinePatchInsets
impl UnsafeUnpin for NinePatchInsets
impl UnwindSafe for NinePatchInsets
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