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
sourceimpl Clone for StaticTexture
impl Clone for StaticTexture
sourcefn clone(&self) -> StaticTexture
fn clone(&self) -> StaticTexture
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StaticTexture
impl Debug for StaticTexture
sourceimpl PartialEq<StaticTexture> for StaticTexture
impl PartialEq<StaticTexture> for StaticTexture
sourcefn 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 ==. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more