Struct rust_raylib::texture::NPatchInfo
source · #[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: RectangleTexture source rectangle
left: i32Left border offset
top: i32Top border offset
right: i32Right border offset
bottom: i32Bottom border offset
layout: NPatchLayoutLayout 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.
source§impl PartialEq<NPatchInfo> for NPatchInfo
impl PartialEq<NPatchInfo> for NPatchInfo
source§fn eq(&self, other: &NPatchInfo) -> bool
fn eq(&self, other: &NPatchInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NPatchInfo
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