Trait gio::prelude::LoadableIconExt
source · [−]pub trait LoadableIconExt: 'static {
fn load(
&self,
size: i32,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<(InputStream, GString), Error>;
fn load_async<P: FnOnce(Result<(InputStream, GString), Error>) + 'static>(
&self,
size: i32,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn load_future(
&self,
size: i32
) -> Pin<Box_<dyn Future<Output = Result<(InputStream, GString), Error>> + 'static>>;
}
Required Methods
sourcefn load(
fn load(
&self,
size: i32,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<(InputStream, GString), Error>
sourcefn load_async<P: FnOnce(Result<(InputStream, GString), Error>) + 'static>(
fn load_async<P: FnOnce(Result<(InputStream, GString), Error>) + 'static>(
&self,
size: i32,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn load_future(