Trait ux::prelude::LoadableIconExt[]

pub trait LoadableIconExt: 'static {
    pub fn load<P>(
        &self,
        size: i32,
        cancellable: Option<&P>
    ) -> Result<(InputStream, GString), Error>
    where
        P: IsA<Cancellable>
;
pub fn load_async<P, Q>(
        &self,
        size: i32,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<(InputStream, GString), Error>) + Send
;
pub fn load_async_future(
        &self,
        size: i32
    ) -> Pin<Box<dyn Future<Output = Result<(InputStream, GString), Error>> + 'static, Global>>; }

Required methods

pub fn load<P>(
    &self,
    size: i32,
    cancellable: Option<&P>
) -> Result<(InputStream, GString), Error> where
    P: IsA<Cancellable>, 

pub fn load_async<P, Q>(&self, size: i32, cancellable: Option<&P>, callback: Q) where
    P: IsA<Cancellable>,
    Q: 'static + FnOnce(Result<(InputStream, GString), Error>) + Send

pub fn load_async_future(
    &self,
    size: i32
) -> Pin<Box<dyn Future<Output = Result<(InputStream, GString), Error>> + 'static, Global>>

Loading content...

Implementors

impl<O> LoadableIconExt for O where
    O: IsA<LoadableIcon>, 

Loading content...