pub struct IconLoader;Trait Implementations§
Source§impl Default for IconLoader
impl Default for IconLoader
Source§impl IPlatformIconLoader for IconLoader
impl IPlatformIconLoader for IconLoader
Source§fn load_icon_from_bitmap(
&self,
bitmap: Arc<SharedBitmapImpl>,
) -> Rc<dyn IWindowIconImpl>
fn load_icon_from_bitmap( &self, bitmap: Arc<SharedBitmapImpl>, ) -> Rc<dyn IWindowIconImpl>
§Panics
Panics when the bitmap cannot be encoded or decoded again, where the reference implementation throws.
Source§fn load_icon_from_file(
&self,
file_name: &str,
) -> Result<Rc<dyn IWindowIconImpl>>
fn load_icon_from_file( &self, file_name: &str, ) -> Result<Rc<dyn IWindowIconImpl>>
Loads an icon from a file.
Source§fn load_icon_from_stream(
&self,
stream: &mut dyn Read,
) -> Result<Rc<dyn IWindowIconImpl>>
fn load_icon_from_stream( &self, stream: &mut dyn Read, ) -> Result<Rc<dyn IWindowIconImpl>>
Loads an icon from a stream.
Auto Trait Implementations§
impl Freeze for IconLoader
impl RefUnwindSafe for IconLoader
impl Send for IconLoader
impl Sync for IconLoader
impl Unpin for IconLoader
impl UnsafeUnpin for IconLoader
impl UnwindSafe for IconLoader
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more