Struct i_slint_core::graphics::StaticTexture
source · #[repr(C)]pub struct StaticTexture {
pub rect: IntRect,
pub format: PixelFormat,
pub color: Color,
pub index: usize,
}Expand description
Some raw pixel data which is typically stored in the binary
Fields§
§rect: IntRectThe position and size of the texture within the image
format: PixelFormatThe pixel format of this texture
color: ColorThe color, for the alpha map ones
index: usizeindex in the data array
Trait Implementations§
source§impl Clone for StaticTexture
impl Clone for StaticTexture
source§fn clone(&self) -> StaticTexture
fn clone(&self) -> StaticTexture
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 StaticTexture
impl Debug for StaticTexture
source§impl PartialEq<StaticTexture> for StaticTexture
impl PartialEq<StaticTexture> for StaticTexture
source§fn eq(&self, other: &StaticTexture) -> bool
fn eq(&self, other: &StaticTexture) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StaticTexture
Auto Trait Implementations§
impl RefUnwindSafe for StaticTexture
impl Send for StaticTexture
impl Sync for StaticTexture
impl Unpin for StaticTexture
impl UnwindSafe for StaticTexture
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