Ardour  9.0-pre0-582-g084a23a80d
gtkicontheme.h File Reference
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdk.h>
Include dependency graph for gtkicontheme.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GtkIconTheme
 
struct  _GtkIconThemeClass
 

Macros

#define GTK_TYPE_ICON_INFO   (gtk_icon_info_get_type ())
 
#define GTK_TYPE_ICON_THEME   (gtk_icon_theme_get_type ())
 
#define GTK_ICON_THEME(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme))
 
#define GTK_ICON_THEME_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_THEME, GtkIconThemeClass))
 
#define GTK_IS_ICON_THEME(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME))
 
#define GTK_IS_ICON_THEME_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_THEME))
 
#define GTK_ICON_THEME_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_THEME, GtkIconThemeClass))
 
#define GTK_ICON_THEME_ERROR   gtk_icon_theme_error_quark ()
 

Typedefs

typedef struct _GtkIconInfo GtkIconInfo
 
typedef struct _GtkIconTheme GtkIconTheme
 
typedef struct _GtkIconThemeClass GtkIconThemeClass
 
typedef struct _GtkIconThemePrivate GtkIconThemePrivate
 

Enumerations

enum  GtkIconLookupFlags {
  GTK_ICON_LOOKUP_NO_SVG = 1 << 0 , GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1 , GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2 , GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3 ,
  GTK_ICON_LOOKUP_FORCE_SIZE = 1 << 4
}
 
enum  GtkIconThemeError { GTK_ICON_THEME_NOT_FOUND , GTK_ICON_THEME_FAILED }
 

Functions

GQuark gtk_icon_theme_error_quark (void)
 
GType gtk_icon_theme_get_type (void) G_GNUC_CONST
 
GtkIconThemegtk_icon_theme_new (void)
 
GtkIconThemegtk_icon_theme_get_default (void)
 
GtkIconThemegtk_icon_theme_get_for_screen (GdkScreen *screen)
 
void gtk_icon_theme_set_screen (GtkIconTheme *icon_theme, GdkScreen *screen)
 
void gtk_icon_theme_set_search_path (GtkIconTheme *icon_theme, const gchar *path[], gint n_elements)
 
void gtk_icon_theme_get_search_path (GtkIconTheme *icon_theme, gchar **path[], gint *n_elements)
 
void gtk_icon_theme_append_search_path (GtkIconTheme *icon_theme, const gchar *path)
 
void gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme, const gchar *path)
 
void gtk_icon_theme_set_custom_theme (GtkIconTheme *icon_theme, const gchar *theme_name)
 
gboolean gtk_icon_theme_has_icon (GtkIconTheme *icon_theme, const gchar *icon_name)
 
gint * gtk_icon_theme_get_icon_sizes (GtkIconTheme *icon_theme, const gchar *icon_name)
 
GtkIconInfogtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme, const gchar *icon_name, gint size, GtkIconLookupFlags flags)
 
GtkIconInfogtk_icon_theme_choose_icon (GtkIconTheme *icon_theme, const gchar *icon_names[], gint size, GtkIconLookupFlags flags)
 
GdkPixbuf * gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, const gchar *icon_name, gint size, GtkIconLookupFlags flags, GError **error)
 
GtkIconInfogtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme, GIcon *icon, gint size, GtkIconLookupFlags flags)
 
GList * gtk_icon_theme_list_icons (GtkIconTheme *icon_theme, const gchar *context)
 
GList * gtk_icon_theme_list_contexts (GtkIconTheme *icon_theme)
 
char * gtk_icon_theme_get_example_icon_name (GtkIconTheme *icon_theme)
 
gboolean gtk_icon_theme_rescan_if_needed (GtkIconTheme *icon_theme)
 
void gtk_icon_theme_add_builtin_icon (const gchar *icon_name, gint size, GdkPixbuf *pixbuf)
 
GType gtk_icon_info_get_type (void) G_GNUC_CONST
 
GtkIconInfogtk_icon_info_copy (GtkIconInfo *icon_info)
 
void gtk_icon_info_free (GtkIconInfo *icon_info)
 
GtkIconInfogtk_icon_info_new_for_pixbuf (GtkIconTheme *icon_theme, GdkPixbuf *pixbuf)
 
gint gtk_icon_info_get_base_size (GtkIconInfo *icon_info)
 
const gchar * gtk_icon_info_get_filename (GtkIconInfo *icon_info)
 
GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info)
 
GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info, GError **error)
 
void gtk_icon_info_set_raw_coordinates (GtkIconInfo *icon_info, gboolean raw_coordinates)
 
gboolean gtk_icon_info_get_embedded_rect (GtkIconInfo *icon_info, GdkRectangle *rectangle)
 
gboolean gtk_icon_info_get_attach_points (GtkIconInfo *icon_info, GdkPoint **points, gint *n_points)
 
const gchar * gtk_icon_info_get_display_name (GtkIconInfo *icon_info)
 
void _gtk_icon_theme_check_reload (GdkDisplay *display)
 
void _gtk_icon_theme_ensure_builtin_cache (void)
 

Macro Definition Documentation

◆ GTK_ICON_THEME

#define GTK_ICON_THEME (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme))

Definition at line 35 of file gtkicontheme.h.

◆ GTK_ICON_THEME_CLASS

#define GTK_ICON_THEME_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_THEME, GtkIconThemeClass))

Definition at line 36 of file gtkicontheme.h.

◆ GTK_ICON_THEME_ERROR

#define GTK_ICON_THEME_ERROR   gtk_icon_theme_error_quark ()

Definition at line 89 of file gtkicontheme.h.

◆ GTK_ICON_THEME_GET_CLASS

#define GTK_ICON_THEME_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_THEME, GtkIconThemeClass))

Definition at line 39 of file gtkicontheme.h.

◆ GTK_IS_ICON_THEME

#define GTK_IS_ICON_THEME (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME))

Definition at line 37 of file gtkicontheme.h.

◆ GTK_IS_ICON_THEME_CLASS

#define GTK_IS_ICON_THEME_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_THEME))

Definition at line 38 of file gtkicontheme.h.

◆ GTK_TYPE_ICON_INFO

#define GTK_TYPE_ICON_INFO   (gtk_icon_info_get_type ())

Definition at line 32 of file gtkicontheme.h.

◆ GTK_TYPE_ICON_THEME

#define GTK_TYPE_ICON_THEME   (gtk_icon_theme_get_type ())

Definition at line 34 of file gtkicontheme.h.

Typedef Documentation

◆ GtkIconInfo

typedef struct _GtkIconInfo GtkIconInfo

Definition at line 30 of file gtkicontheme.h.

◆ GtkIconTheme

typedef struct _GtkIconTheme GtkIconTheme

Definition at line 30 of file gtkicontheme.h.

◆ GtkIconThemeClass

Definition at line 30 of file gtkicontheme.h.

◆ GtkIconThemePrivate

typedef struct _GtkIconThemePrivate GtkIconThemePrivate

Definition at line 30 of file gtkicontheme.h.

Enumeration Type Documentation

◆ GtkIconLookupFlags

GtkIconLookupFlags:

Parameters
GTK_ICON_LOOKUP_NO_SVGNever return SVG icons, even if gdk-pixbuf supports them. Cannot be used together with GTK_ICON_LOOKUP_FORCE_SVG.
GTK_ICON_LOOKUP_FORCE_SVGReturn SVG icons, even if gdk-pixbuf doesn't support them. Cannot be used together with GTK_ICON_LOOKUP_NO_SVG.
GTK_ICON_LOOKUP_USE_BUILTINWhen passed to gtk_icon_theme_lookup_icon() includes builtin icons as well as files. For a builtin icon, gtk_icon_info_get_filename() returns NULL and you need to call gtk_icon_info_get_builtin_pixbuf().
GTK_ICON_LOOKUP_GENERIC_FALLBACKTry to shorten icon name at '-' characters before looking at inherited themes. For more general fallback, see gtk_icon_theme_choose_icon(). Since 2.12.
GTK_ICON_LOOKUP_FORCE_SIZEAlways return the icon scaled to the requested size. Since 2.14.

Used to specify options for gtk_icon_theme_lookup_icon()

Enumerator
GTK_ICON_LOOKUP_NO_SVG 
GTK_ICON_LOOKUP_FORCE_SVG 
GTK_ICON_LOOKUP_USE_BUILTIN 
GTK_ICON_LOOKUP_GENERIC_FALLBACK 
GTK_ICON_LOOKUP_FORCE_SIZE 

Definition at line 80 of file gtkicontheme.h.

◆ GtkIconThemeError

GtkIconThemeError:

Parameters
GTK_ICON_THEME_NOT_FOUNDThe icon specified does not exist in the theme
GTK_ICON_THEME_FAILEDAn unspecified error occurred.

Error codes for GtkIconTheme operations.

Enumerator
GTK_ICON_THEME_NOT_FOUND 
GTK_ICON_THEME_FAILED 

Definition at line 98 of file gtkicontheme.h.

Function Documentation

◆ _gtk_icon_theme_check_reload()

void _gtk_icon_theme_check_reload ( GdkDisplay display)

◆ _gtk_icon_theme_ensure_builtin_cache()

void _gtk_icon_theme_ensure_builtin_cache ( void  )

◆ gtk_icon_info_copy()

GtkIconInfo* gtk_icon_info_copy ( GtkIconInfo icon_info)

◆ gtk_icon_info_free()

void gtk_icon_info_free ( GtkIconInfo icon_info)

◆ gtk_icon_info_get_attach_points()

gboolean gtk_icon_info_get_attach_points ( GtkIconInfo icon_info,
GdkPoint **  points,
gint *  n_points 
)

◆ gtk_icon_info_get_base_size()

gint gtk_icon_info_get_base_size ( GtkIconInfo icon_info)

◆ gtk_icon_info_get_builtin_pixbuf()

GdkPixbuf* gtk_icon_info_get_builtin_pixbuf ( GtkIconInfo icon_info)

◆ gtk_icon_info_get_display_name()

const gchar* gtk_icon_info_get_display_name ( GtkIconInfo icon_info)

◆ gtk_icon_info_get_embedded_rect()

gboolean gtk_icon_info_get_embedded_rect ( GtkIconInfo icon_info,
GdkRectangle rectangle 
)

◆ gtk_icon_info_get_filename()

const gchar* gtk_icon_info_get_filename ( GtkIconInfo icon_info)

◆ gtk_icon_info_get_type()

GType gtk_icon_info_get_type ( void  )

◆ gtk_icon_info_load_icon()

GdkPixbuf* gtk_icon_info_load_icon ( GtkIconInfo icon_info,
GError **  error 
)

◆ gtk_icon_info_new_for_pixbuf()

GtkIconInfo* gtk_icon_info_new_for_pixbuf ( GtkIconTheme icon_theme,
GdkPixbuf *  pixbuf 
)

◆ gtk_icon_info_set_raw_coordinates()

void gtk_icon_info_set_raw_coordinates ( GtkIconInfo icon_info,
gboolean  raw_coordinates 
)

◆ gtk_icon_theme_add_builtin_icon()

void gtk_icon_theme_add_builtin_icon ( const gchar *  icon_name,
gint  size,
GdkPixbuf *  pixbuf 
)

◆ gtk_icon_theme_append_search_path()

void gtk_icon_theme_append_search_path ( GtkIconTheme icon_theme,
const gchar *  path 
)

◆ gtk_icon_theme_choose_icon()

GtkIconInfo* gtk_icon_theme_choose_icon ( GtkIconTheme icon_theme,
const gchar *  icon_names[],
gint  size,
GtkIconLookupFlags  flags 
)

◆ gtk_icon_theme_error_quark()

GQuark gtk_icon_theme_error_quark ( void  )

◆ gtk_icon_theme_get_default()

GtkIconTheme* gtk_icon_theme_get_default ( void  )

◆ gtk_icon_theme_get_example_icon_name()

char* gtk_icon_theme_get_example_icon_name ( GtkIconTheme icon_theme)

◆ gtk_icon_theme_get_for_screen()

GtkIconTheme* gtk_icon_theme_get_for_screen ( GdkScreen screen)

◆ gtk_icon_theme_get_icon_sizes()

gint* gtk_icon_theme_get_icon_sizes ( GtkIconTheme icon_theme,
const gchar *  icon_name 
)

◆ gtk_icon_theme_get_search_path()

void gtk_icon_theme_get_search_path ( GtkIconTheme icon_theme,
gchar **  path[],
gint *  n_elements 
)

◆ gtk_icon_theme_get_type()

GType gtk_icon_theme_get_type ( void  )

◆ gtk_icon_theme_has_icon()

gboolean gtk_icon_theme_has_icon ( GtkIconTheme icon_theme,
const gchar *  icon_name 
)

◆ gtk_icon_theme_list_contexts()

GList* gtk_icon_theme_list_contexts ( GtkIconTheme icon_theme)

◆ gtk_icon_theme_list_icons()

GList* gtk_icon_theme_list_icons ( GtkIconTheme icon_theme,
const gchar *  context 
)

◆ gtk_icon_theme_load_icon()

GdkPixbuf* gtk_icon_theme_load_icon ( GtkIconTheme icon_theme,
const gchar *  icon_name,
gint  size,
GtkIconLookupFlags  flags,
GError **  error 
)

◆ gtk_icon_theme_lookup_by_gicon()

GtkIconInfo* gtk_icon_theme_lookup_by_gicon ( GtkIconTheme icon_theme,
GIcon *  icon,
gint  size,
GtkIconLookupFlags  flags 
)

◆ gtk_icon_theme_lookup_icon()

GtkIconInfo* gtk_icon_theme_lookup_icon ( GtkIconTheme icon_theme,
const gchar *  icon_name,
gint  size,
GtkIconLookupFlags  flags 
)

◆ gtk_icon_theme_new()

GtkIconTheme* gtk_icon_theme_new ( void  )

◆ gtk_icon_theme_prepend_search_path()

void gtk_icon_theme_prepend_search_path ( GtkIconTheme icon_theme,
const gchar *  path 
)

◆ gtk_icon_theme_rescan_if_needed()

gboolean gtk_icon_theme_rescan_if_needed ( GtkIconTheme icon_theme)

◆ gtk_icon_theme_set_custom_theme()

void gtk_icon_theme_set_custom_theme ( GtkIconTheme icon_theme,
const gchar *  theme_name 
)

◆ gtk_icon_theme_set_screen()

void gtk_icon_theme_set_screen ( GtkIconTheme icon_theme,
GdkScreen screen 
)

◆ gtk_icon_theme_set_search_path()

void gtk_icon_theme_set_search_path ( GtkIconTheme icon_theme,
const gchar *  path[],
gint  n_elements 
)