Struct rust_raylib::ffi::NPatchInfo
source · #[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: RectangleTexture source rectangle
left: c_intLeft border offset
top: c_intTop border offset
right: c_intRight border offset
bottom: c_intBottom border offset
layout: c_intLayout 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(value: NPatchInfo) -> Self
fn from(value: NPatchInfo) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
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