Struct i_slint_core::StaticTextures
source · pub struct StaticTextures {
pub size: IntSize,
pub original_size: IntSize,
pub data: Slice<'static, u8>,
pub textures: Slice<'static, StaticTexture>,
}Expand description
A texture is stored in read-only memory and may be composed of sub-textures.
Fields§
§size: IntSizeThe total size of the image (this might not be the size of the full image as some transparent part are not part of any texture)
original_size: IntSizeThe size of the image before the compiler applied any scaling
data: Slice<'static, u8>The pixel data referenced by the textures
textures: Slice<'static, StaticTexture>The list of textures
Trait Implementations§
source§impl Clone for StaticTextures
impl Clone for StaticTextures
source§fn clone(&self) -> StaticTextures
fn clone(&self) -> StaticTextures
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 StaticTextures
impl Debug for StaticTextures
source§impl PartialEq<StaticTextures> for StaticTextures
impl PartialEq<StaticTextures> for StaticTextures
source§fn eq(&self, other: &StaticTextures) -> bool
fn eq(&self, other: &StaticTextures) -> bool
This method tests for
self and other values to be equal, and is used
by ==.