Name
Themeable Stock Images --
Synopsis
#include <gtk/gtk.h>
struct GtkIconSource;
struct GtkIconFactory;
struct GtkIconSet;
GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source);
void gtk_icon_source_free (GtkIconSource *source);
void gtk_icon_factory_add (GtkIconFactory *factory,
const gchar *stock_id,
GtkIconSet *icon_set);
void gtk_icon_factory_add_default (GtkIconFactory *factory);
GtkIconSet* gtk_icon_factory_lookup (GtkIconFactory *factory,
const gchar *stock_id);
GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id);
GtkIconFactory* gtk_icon_factory_new (void);
void gtk_icon_factory_remove_default (GtkIconFactory *factory);
void gtk_icon_set_add_source (GtkIconSet *icon_set,
const GtkIconSource *source);
GtkIconSet* gtk_icon_set_copy (GtkIconSet *icon_set);
GtkIconSet* gtk_icon_set_new (void);
GtkIconSet* gtk_icon_set_ref (GtkIconSet *icon_set);
GdkPixbuf* gtk_icon_set_render_icon (GtkIconSet *icon_set,
GtkStyle *style,
GtkTextDirection direction,
GtkStateType state,
const gchar *size,
GtkWidget *widget,
const char *detail);
void gtk_icon_set_unref (GtkIconSet *icon_set);
#define GTK_ICON_SIZE_MENU
#define GTK_ICON_SIZE_BUTTON
#define GTK_ICON_SIZE_SMALL_TOOLBAR
#define GTK_ICON_SIZE_LARGE_TOOLBAR
#define GTK_ICON_SIZE_DIALOG
gboolean gtk_icon_size_lookup (const gchar *alias,
gint *width,
gint *height);
void gtk_icon_size_register (const gchar *alias,
gint width,
gint height);
void gtk_icon_size_register_alias (const gchar *alias,
const gchar *target);
|
Details
struct GtkIconSource
struct GtkIconSource
{
/* Either filename or pixbuf can be NULL. If both are non-NULL,
* the pixbuf is assumed to be the already-loaded contents of the
* file.
*/
gchar *filename;
GdkPixbuf *pixbuf;
GtkTextDirection direction;
GtkStateType state;
gchar *size;
/* If TRUE, then the parameter is wildcarded, and the above
* fields should be ignored. If FALSE, the parameter is
* specified, and the above fields should be valid.
*/
guint any_direction : 1;
guint any_state : 1;
guint any_size : 1;
}; |
struct GtkIconFactory
struct GtkIconFactory
{
GObject parent_instance;
GHashTable *icons;
}; |
gtk_icon_factory_add_default ()
gtk_icon_factory_lookup ()
gtk_icon_factory_lookup_default ()
gtk_icon_factory_remove_default ()
gtk_icon_set_add_source ()
gtk_icon_set_render_icon ()
GTK_ICON_SIZE_MENU
#define GTK_ICON_SIZE_MENU "gtk-menu" |
GTK_ICON_SIZE_BUTTON
#define GTK_ICON_SIZE_BUTTON "gtk-button" |
GTK_ICON_SIZE_SMALL_TOOLBAR
#define GTK_ICON_SIZE_SMALL_TOOLBAR "gtk-small-toolbar" |
GTK_ICON_SIZE_LARGE_TOOLBAR
#define GTK_ICON_SIZE_LARGE_TOOLBAR "gtk-large-toolbar" |
GTK_ICON_SIZE_DIALOG
#define GTK_ICON_SIZE_DIALOG "gtk-dialog" |
gtk_icon_size_register ()
void gtk_icon_size_register (const gchar *alias,
gint width,
gint height); |
gtk_icon_size_register_alias ()
void gtk_icon_size_register_alias (const gchar *alias,
const gchar *target); |