pub struct IconData {
pub rgba: Vec<u8>,
pub width: u32,
pub height: u32,
}Available on crate feature
egui only.Expand description
Image data for an application icon.
Use a square image, e.g. 256x256 pixels. You can use a transparent background.
Fields§
§rgba: Vec<u8>RGBA pixels, with separate/unmultiplied alpha.
width: u32Image width. This should be a multiple of 4.
height: u32Image height. This should be a multiple of 4.
Implementations§
Trait Implementations§
impl Eq for IconData
Source§impl From<&IconData> for ColorImage
impl From<&IconData> for ColorImage
Source§fn from(icon: &IconData) -> ColorImage
fn from(icon: &IconData) -> ColorImage
Converts to this type from the input type.
Source§impl From<IconData> for ColorImage
impl From<IconData> for ColorImage
Source§fn from(icon: IconData) -> ColorImage
fn from(icon: IconData) -> ColorImage
Converts to this type from the input type.
impl StructuralPartialEq for IconData
Auto Trait Implementations§
impl Forget for IconData
impl Freeze for IconData
impl Move for IconData
impl RefUnwindSafe for IconData
impl Send for IconDatawhere
RawVecInner: Send,
impl Sync for IconDatawhere
RawVecInner: Sync,
impl Unpin for IconData
impl UnsafeUnpin for IconData
impl UnwindSafe for IconDatawhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more