Functions
PictCallback ()
void
(*PictCallback) (PictBinData *Param1,
gpointer Param2);
common_pict_parse_options ()
void
common_pict_parse_options (PictOptions *options,
const gchar *options_str);
common_pict_init_cache ()
void
common_pict_init_cache (PictOptions *options);
common_pict_add_cached_pixbuf ()
void
common_pict_add_cached_pixbuf (PictOptions *options,
const GValue *value,
GdkPixbuf *pixbuf);
common_pict_fetch_cached_pixbuf ()
GdkPixbuf *
common_pict_fetch_cached_pixbuf (PictOptions *options,
const GValue *value);
common_pict_clear_pixbuf_cache ()
void
common_pict_clear_pixbuf_cache (PictOptions *options);
common_pict_load_data ()
gboolean
common_pict_load_data (PictOptions *options,
const GValue *value,
PictBinData *bindata,
const gchar **out_icon_name,
GError **error);
common_pict_make_pixbuf ()
GdkPixbuf *
common_pict_make_pixbuf (PictOptions *options,
PictBinData *bindata,
PictAllocation *allocation,
const gchar **out_icon_name,
GError **error);
common_pict_adjust_menu_sensitiveness ()
void
common_pict_adjust_menu_sensitiveness (PictMenu *pictmenu,
gboolean editable,
PictBinData *bindata);
common_pict_get_value ()
GValue *
common_pict_get_value (PictBinData *bindata,
PictOptions *options,
GType gtype);
Types and Values
PictBinData
typedef struct {
guchar *data;
glong data_length;
} PictBinData;
PictOptions
typedef struct {
PictEncodeType encoding;
GHashTable *pixbuf_hash; /* key = GValue pointer, value = a GdkPixbuf */
} PictOptions;
PictAllocation
typedef struct {
gint width;
gint height;
} PictAllocation;
PictMenu
typedef struct {
GtkWidget *menu; /* popup menu */
GtkWidget *load_mitem;
GtkWidget *save_mitem;
GtkWidget *copy_mitem;
} PictMenu;