Interface

GioLoadableIcon

Description [src]

interface Gio.LoadableIcon : Gio.Icon

Extends the GIcon interface and adds the ability to load icons from streams.

Prerequisite

In order to implement LoadableIcon, your type must inherit from GIcon.

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 members
g_iface
GTypeInterface
 

The parent interface.

load
GInputStream* (* load) (
    GLoadableIcon* icon,
    int size,
    char** type,
    GCancellable* cancellable,
    GError** error
  )
 No description available.
load_async
void (* load_async) (
    GLoadableIcon* icon,
    int size,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  )
 No description available.
load_finish
GInputStream* (* load_finish) (
    GLoadableIcon* icon,
    GAsyncResult* res,
    char** type,
    GError** error
  )
 No description available.

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().