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

sizean integer.
typea location to store the type of the loaded icon, null to ignore.
cancellableoptional #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

sizean integer.
cancellableoptional #GCancellable object, null to ignore.
callbacka #GAsyncReadyCallback to call when the request is satisfied

Finishes an asynchronous icon load started in gio.loadable_icon.LoadableIcon.loadAsync.

Parameters

resa #GAsyncResult.
typea 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