20 #ifndef __GTK_ICON_THEME_H__
21 #define __GTK_ICON_THEME_H__
23 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24 #error "Only <gtk/gtk.h> can be included directly."
27 #include <gdk-pixbuf/gdk-pixbuf.h>
32 #define GTK_TYPE_ICON_INFO (gtk_icon_info_get_type ())
34 #define GTK_TYPE_ICON_THEME (gtk_icon_theme_get_type ())
35 #define GTK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme))
36 #define GTK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_THEME, GtkIconThemeClass))
37 #define GTK_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME))
38 #define GTK_IS_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_THEME))
39 #define GTK_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_THEME, GtkIconThemeClass))
89 #define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark ()
107 #define gtk_icon_theme_set_search_path gtk_icon_theme_set_search_path_utf8
108 #define gtk_icon_theme_get_search_path gtk_icon_theme_get_search_path_utf8
109 #define gtk_icon_theme_append_search_path gtk_icon_theme_append_search_path_utf8
110 #define gtk_icon_theme_prepend_search_path gtk_icon_theme_prepend_search_path_utf8
111 #define gtk_icon_info_get_filename gtk_icon_info_get_filename_utf8
134 const gchar *theme_name);
137 const gchar *icon_name);
139 const gchar *icon_name);
141 const gchar *icon_name,
145 const gchar *icon_names[],
149 const gchar *icon_name,
160 const gchar *context);
183 gboolean raw_coordinates);
typedefG_BEGIN_DECLS struct _GdkPoint GdkPoint
gboolean gtk_icon_theme_has_icon(GtkIconTheme *icon_theme, const gchar *icon_name)
GtkIconTheme * gtk_icon_theme_get_default(void)
const gchar * gtk_icon_info_get_display_name(GtkIconInfo *icon_info)
GQuark gtk_icon_theme_error_quark(void)
void gtk_icon_info_set_raw_coordinates(GtkIconInfo *icon_info, gboolean raw_coordinates)
GType gtk_icon_theme_get_type(void) G_GNUC_CONST
void _gtk_icon_theme_check_reload(GdkDisplay *display)
GList * gtk_icon_theme_list_icons(GtkIconTheme *icon_theme, const gchar *context)
GtkIconInfo * gtk_icon_theme_lookup_by_gicon(GtkIconTheme *icon_theme, GIcon *icon, gint size, GtkIconLookupFlags flags)
@ GTK_ICON_THEME_NOT_FOUND
GdkPixbuf * gtk_icon_theme_load_icon(GtkIconTheme *icon_theme, const gchar *icon_name, gint size, GtkIconLookupFlags flags, GError **error)
void gtk_icon_theme_set_custom_theme(GtkIconTheme *icon_theme, const gchar *theme_name)
GType gtk_icon_info_get_type(void) G_GNUC_CONST
gint * gtk_icon_theme_get_icon_sizes(GtkIconTheme *icon_theme, const gchar *icon_name)
GList * gtk_icon_theme_list_contexts(GtkIconTheme *icon_theme)
void _gtk_icon_theme_ensure_builtin_cache(void)
GtkIconTheme * gtk_icon_theme_new(void)
char * gtk_icon_theme_get_example_icon_name(GtkIconTheme *icon_theme)
void gtk_icon_theme_append_search_path(GtkIconTheme *icon_theme, const gchar *path)
gboolean gtk_icon_info_get_attach_points(GtkIconInfo *icon_info, GdkPoint **points, gint *n_points)
GtkIconInfo * gtk_icon_theme_choose_icon(GtkIconTheme *icon_theme, const gchar *icon_names[], gint size, GtkIconLookupFlags flags)
gboolean gtk_icon_info_get_embedded_rect(GtkIconInfo *icon_info, GdkRectangle *rectangle)
void gtk_icon_theme_set_search_path(GtkIconTheme *icon_theme, const gchar *path[], gint n_elements)
GtkIconInfo * gtk_icon_info_copy(GtkIconInfo *icon_info)
@ GTK_ICON_LOOKUP_GENERIC_FALLBACK
@ GTK_ICON_LOOKUP_USE_BUILTIN
@ GTK_ICON_LOOKUP_FORCE_SIZE
@ GTK_ICON_LOOKUP_FORCE_SVG
gboolean gtk_icon_theme_rescan_if_needed(GtkIconTheme *icon_theme)
void gtk_icon_theme_get_search_path(GtkIconTheme *icon_theme, gchar **path[], gint *n_elements)
GdkPixbuf * gtk_icon_info_get_builtin_pixbuf(GtkIconInfo *icon_info)
void gtk_icon_theme_prepend_search_path(GtkIconTheme *icon_theme, const gchar *path)
void gtk_icon_info_free(GtkIconInfo *icon_info)
const gchar * gtk_icon_info_get_filename(GtkIconInfo *icon_info)
GtkIconInfo * gtk_icon_info_new_for_pixbuf(GtkIconTheme *icon_theme, GdkPixbuf *pixbuf)
gint gtk_icon_info_get_base_size(GtkIconInfo *icon_info)
void gtk_icon_theme_add_builtin_icon(const gchar *icon_name, gint size, GdkPixbuf *pixbuf)
struct _GtkIconInfo GtkIconInfo
GtkIconInfo * gtk_icon_theme_lookup_icon(GtkIconTheme *icon_theme, const gchar *icon_name, gint size, GtkIconLookupFlags flags)
GtkIconTheme * gtk_icon_theme_get_for_screen(GdkScreen *screen)
struct _GtkIconThemePrivate GtkIconThemePrivate
void gtk_icon_theme_set_screen(GtkIconTheme *icon_theme, GdkScreen *screen)
GdkPixbuf * gtk_icon_info_load_icon(GtkIconInfo *icon_info, GError **error)
GtkImagePixbufData pixbuf
void rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
void(* changed)(GtkIconTheme *icon_theme)
GObjectClass parent_class
GtkIconThemePrivate * GSEAL(priv)