GLoadableIcon

GLoadableIcon

Synopsis




                    GLoadableIcon;
                    GLoadableIconIface;
GInputStream*       g_loadable_icon_load                (GLoadableIcon *icon,
                                                         int size,
                                                         char **type,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                g_loadable_icon_load_async          (GLoadableIcon *icon,
                                                         int size,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
GInputStream*       g_loadable_icon_load_finish         (GLoadableIcon *icon,
                                                         GAsyncResult *res,
                                                         char **type,
                                                         GError **error);


Object Hierarchy


  GInterface
   +----GLoadableIcon

Prerequisites

GLoadableIcon requires GIcon and GObject.

Known Implementations

GLoadableIcon is implemented by GFileIcon.

Description

Details

GLoadableIcon

typedef struct _GLoadableIcon GLoadableIcon;


GLoadableIconIface

typedef struct {
  GTypeInterface g_iface;

  /* Virtual Table */

  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);
} GLoadableIconIface;


g_loadable_icon_load ()

GInputStream*       g_loadable_icon_load                (GLoadableIcon *icon,
                                                         int size,
                                                         char **type,
                                                         GCancellable *cancellable,
                                                         GError **error);

icon :

size :

type :

cancellable :

optional GCancellable object, NULL to ignore.

error :

a GError location to store the error occuring, or NULL to ignore. Returns:

Returns :


g_loadable_icon_load_async ()

void                g_loadable_icon_load_async          (GLoadableIcon *icon,
                                                         int size,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Loads an icon asynchronously.

icon :

size :

cancellable :

optional GCancellable object, NULL to ignore. callback:

callback :

user_data :


g_loadable_icon_load_finish ()

GInputStream*       g_loadable_icon_load_finish         (GLoadableIcon *icon,
                                                         GAsyncResult *res,
                                                         char **type,
                                                         GError **error);

icon :

res :

type :

error :

a GError location to store the error occuring, or NULL to ignore. Returns:

Returns :