Interface
GioLoadableIcon
Prerequisite
In order to implement LoadableIcon, your type must inherit fromGIcon
.
Instance methods
g_loadable_icon_load
Loads a loadable icon. For the asynchronous version of this function, see g_loadable_icon_load_async().
g_loadable_icon_load_async
Loads an icon asynchronously. To finish this function, see g_loadable_icon_load_finish(). For the synchronous, blocking version of this function, see g_loadable_icon_load().
g_loadable_icon_load_finish
Finishes an asynchronous icon load started in g_loadable_icon_load_async().
Interface structure
struct GioLoadableIconIface {
GTypeInterface g_iface;
GInputStream* (* load) (
GLoadableIcon* icon,
int size,
char** type,
GCancellable* cancellable,
GError** error
);
void (* load_async) (
GLoadableIcon* icon,
int size,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
GInputStream* (* load_finish) (
GLoadableIcon* icon,
GAsyncResult* res,
char** type,
GError** error
);
}
Interface for icons that can be loaded as a stream.
Interface members
g_iface |
|
The parent interface. |
|
load |
|
Loads an icon. |
|
load_async |
|
Loads an icon asynchronously. |
|
load_finish |
|
Finishes an asynchronous icon load. |
Virtual methods
Gio.LoadableIcon.load
Loads a loadable icon. For the asynchronous version of this function, see g_loadable_icon_load_async().
Gio.LoadableIcon.load_async
Loads an icon asynchronously. To finish this function, see g_loadable_icon_load_finish(). For the synchronous, blocking version of this function, see g_loadable_icon_load().
Gio.LoadableIcon.load_finish
Finishes an asynchronous icon load started in g_loadable_icon_load_async().