Struct i_slint_core::graphics::StaticTextures
source · [−]#[repr(C)]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
sourceimpl Clone for StaticTextures
impl Clone for StaticTextures
sourcefn clone(&self) -> StaticTextures
fn clone(&self) -> StaticTextures
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 moresourceimpl Debug for StaticTextures
impl Debug for StaticTextures
sourceimpl PartialEq<StaticTextures> for StaticTextures
impl PartialEq<StaticTextures> for StaticTextures
sourcefn eq(&self, other: &StaticTextures) -> bool
fn eq(&self, other: &StaticTextures) -> bool
impl StructuralPartialEq for StaticTextures
Auto Trait Implementations
impl RefUnwindSafe for StaticTextures
impl Send for StaticTextures
impl Sync for StaticTextures
impl Unpin for StaticTextures
impl UnwindSafe for StaticTextures
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