#[repr(C)]pub struct NPatchInfo {
pub source: Rectangle,
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
pub layout: NPatchLayout,
}
Expand description
NPatchInfo, n-patch layout info
Fields§
§source: Rectangle
Texture source rectangle
left: i32
Left border offset
top: i32
Top border offset
right: i32
Right border offset
bottom: i32
Bottom border offset
layout: NPatchLayout
Layout of the n-patch: 3x3, 1x3 or 3x1
Trait Implementations§
Source§impl Clone for NPatchInfo
impl Clone for NPatchInfo
Source§fn clone(&self) -> NPatchInfo
fn clone(&self) -> NPatchInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NPatchInfo
impl Debug for NPatchInfo
Source§impl From<NPatchInfo> for NPatchInfo
impl From<NPatchInfo> for NPatchInfo
Source§fn from(val: NPatchInfo) -> Self
fn from(val: NPatchInfo) -> Self
Converts to this type from the input type.
Source§impl From<NPatchInfo> for NPatchInfo
impl From<NPatchInfo> for NPatchInfo
Source§fn from(value: NPatchInfo) -> Self
fn from(value: NPatchInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NPatchInfo
impl PartialEq for NPatchInfo
impl StructuralPartialEq for NPatchInfo
Auto Trait Implementations§
impl Freeze for NPatchInfo
impl RefUnwindSafe for NPatchInfo
impl Send for NPatchInfo
impl Sync for NPatchInfo
impl Unpin for NPatchInfo
impl UnwindSafe for NPatchInfo
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