Struct i_slint_core::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: IntSize
The 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: IntSize
The 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 for StaticTextures
impl PartialEq 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 ==
.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§
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