pub enum IconSource {
Name(String),
File(PathBuf),
Pixels(IconPixels),
}Expand description
What an Icon shows.
Variants§
Name(String)
A freedesktop icon name such as "audio-volume-high", looked up in
the icon theme.
File(PathBuf)
An SVG or PNG file.
Pixels(IconPixels)
Raw pixels, as a tray item sends them.
Trait Implementations§
Source§impl Clone for IconSource
impl Clone for IconSource
Source§impl Debug for IconSource
impl Debug for IconSource
Source§impl IntoProp<IconSource> for IconSource
impl IntoProp<IconSource> for IconSource
Source§fn into_prop(self) -> Prop<IconSource>
fn into_prop(self) -> Prop<IconSource>
Wraps the value or closure.
Source§impl IntoProp<IconSource> for &str
An icon name, such as "audio-volume-high".
impl IntoProp<IconSource> for &str
An icon name, such as "audio-volume-high".
Source§fn into_prop(self) -> Prop<IconSource>
fn into_prop(self) -> Prop<IconSource>
Wraps the value or closure.
Source§impl IntoProp<IconSource> for String
An icon name, as tray items send them.
impl IntoProp<IconSource> for String
An icon name, as tray items send them.
Source§fn into_prop(self) -> Prop<IconSource>
fn into_prop(self) -> Prop<IconSource>
Wraps the value or closure.
Source§impl IntoProp<IconSource> for &Path
An SVG or PNG file.
impl IntoProp<IconSource> for &Path
An SVG or PNG file.
Source§fn into_prop(self) -> Prop<IconSource>
fn into_prop(self) -> Prop<IconSource>
Wraps the value or closure.
Source§impl IntoProp<IconSource> for PathBuf
An SVG or PNG file.
impl IntoProp<IconSource> for PathBuf
An SVG or PNG file.
Source§fn into_prop(self) -> Prop<IconSource>
fn into_prop(self) -> Prop<IconSource>
Wraps the value or closure.
Source§impl PartialEq for IconSource
impl PartialEq for IconSource
impl StructuralPartialEq for IconSource
Auto Trait Implementations§
impl !Send for IconSource
impl !Sync for IconSource
impl Forget for IconSource
impl Freeze for IconSource
impl Move for IconSource
impl RefUnwindSafe for IconSource
impl Unpin for IconSource
impl UnsafeUnpin for IconSource
impl UnwindSafe for IconSource
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