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: IntRect
The position and size of the texture within the image
format: PixelFormat
The pixel format of this texture
color: Color
The color, for the alpha map ones
index: usize
index in the data array
Trait Implementations
sourceimpl Clone for StaticTexture
impl Clone for StaticTexture
sourcefn clone(&self) -> StaticTexture
fn clone(&self) -> StaticTexture
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 StaticTexture
impl Debug for StaticTexture
sourceimpl PartialEq<StaticTexture> for StaticTexture
impl PartialEq<StaticTexture> for StaticTexture
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &StaticTexture) -> bool
fn ne(&self, other: &StaticTexture) -> bool
This method tests for !=
.
impl StructuralPartialEq for StaticTexture
Auto Trait Implementations
impl RefUnwindSafe for StaticTexture
impl Send for StaticTexture
impl Sync for StaticTexture
impl Unpin for StaticTexture
impl UnwindSafe for StaticTexture
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