#[repr(C)]pub struct NPatchInfo {
pub source: Rectangle,
pub left: c_int,
pub top: c_int,
pub right: c_int,
pub bottom: c_int,
pub layout: c_int,
}
Expand description
NPatchInfo, n-patch layout info
Fields§
§source: Rectangle
Texture source rectangle
left: c_int
Left border offset
top: c_int
Top border offset
right: c_int
Right border offset
bottom: c_int
Bottom border offset
layout: c_int
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 duplicate 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.
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