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
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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StaticTextures) -> bool
fn ne(&self, other: &StaticTextures) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more