gio.loadable_icon_mixin
Module for LoadableIcon interface mixin
Templates 2
tmplLoadableIconT()
gio.loadable_icon.LoadableIcon extends the gio.icon.Icon interface and adds the ability to load icons from streams.
Functions
gio.input_stream.InputStream load(int size, out string type, gio.cancellable.Cancellable cancellable = null)
Loads a loadable icon. For the asynchronous version of this function, see gio.loadable_icon.LoadableIcon.loadAsync.
Parameters
size | an integer. |
type | a location to store the type of the loaded icon, null to ignore. |
cancellable | optional #GCancellable object, null to ignore. |
Returns
a #GInputStream to read the icon from.
Throws
void loadAsync(int size, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)
Loads an icon asynchronously. To finish this function, see gio.loadable_icon.LoadableIcon.loadFinish. For the synchronous, blocking version of this function, see gio.loadable_icon.LoadableIcon.load.
Parameters
size | an integer. |
cancellable | optional #GCancellable object, null to ignore. |
callback | a #GAsyncReadyCallback to call when the request is satisfied |
gio.input_stream.InputStream loadFinish(gio.async_result.AsyncResult res, out string type)
Finishes an asynchronous icon load started in gio.loadable_icon.LoadableIcon.loadAsync.
Parameters
res | a #GAsyncResult. |
type | a location to store the type of the loaded icon, null to ignore. |
Returns
a #GInputStream to read the icon from.
Throws
tmplLoadableIconGidBuilderT()
Fluent builder implementation template for gio.loadable_icon.LoadableIcon