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 ==.