Themeable Stock Images

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

Description

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


struct GtkIconSet

struct GtkIconSet;


gtk_icon_source_copy ()

GtkIconSource* gtk_icon_source_copy         (const GtkIconSource *source);

source : 
Returns : 


gtk_icon_source_free ()

void        gtk_icon_source_free            (GtkIconSource *source);

source : 


gtk_icon_factory_add ()

void        gtk_icon_factory_add            (GtkIconFactory *factory,
                                             const gchar *stock_id,
                                             GtkIconSet *icon_set);

factory : 
stock_id : 
icon_set : 


gtk_icon_factory_add_default ()

void        gtk_icon_factory_add_default    (GtkIconFactory *factory);

factory : 


gtk_icon_factory_lookup ()

GtkIconSet* gtk_icon_factory_lookup         (GtkIconFactory *factory,
                                             const gchar *stock_id);

factory : 
stock_id : 
Returns : 


gtk_icon_factory_lookup_default ()

GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id);

stock_id : 
Returns : 


gtk_icon_factory_new ()

GtkIconFactory* gtk_icon_factory_new        (void);

Returns : 


gtk_icon_factory_remove_default ()

void        gtk_icon_factory_remove_default (GtkIconFactory *factory);

factory : 


gtk_icon_set_add_source ()

void        gtk_icon_set_add_source         (GtkIconSet *icon_set,
                                             const GtkIconSource *source);

icon_set : 
source : 


gtk_icon_set_copy ()

GtkIconSet* gtk_icon_set_copy               (GtkIconSet *icon_set);

icon_set : 
Returns : 


gtk_icon_set_new ()

GtkIconSet* gtk_icon_set_new                (void);

Returns : 


gtk_icon_set_ref ()

GtkIconSet* gtk_icon_set_ref                (GtkIconSet *icon_set);

icon_set : 
Returns : 


gtk_icon_set_render_icon ()

GdkPixbuf*  gtk_icon_set_render_icon        (GtkIconSet *icon_set,
                                             GtkStyle *style,
                                             GtkTextDirection direction,
                                             GtkStateType state,
                                             const gchar *size,
                                             GtkWidget *widget,
                                             const char *detail);

icon_set : 
style : 
direction : 
state : 
size : 
widget : 
detail : 
Returns : 


gtk_icon_set_unref ()

void        gtk_icon_set_unref              (GtkIconSet *icon_set);

icon_set : 


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

gboolean    gtk_icon_size_lookup            (const gchar *alias,
                                             gint *width,
                                             gint *height);

alias : 
width : 
height : 
Returns : 


gtk_icon_size_register ()

void        gtk_icon_size_register          (const gchar *alias,
                                             gint width,
                                             gint height);

alias : 
width : 
height : 


gtk_icon_size_register_alias ()

void        gtk_icon_size_register_alias    (const gchar *alias,
                                             const gchar *target);

alias : 
target :