Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkicontheme.h File Reference
#include <gdk/gdk.h>
#include <gtk/gtkenums.h>

Go to the source code of this file.

Macros

#define GTK_TYPE_ICON_PAINTABLE   (gtk_icon_paintable_get_type ())
 
#define GTK_ICON_PAINTABLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_PAINTABLE, GtkIconPaintable))
 
#define GTK_IS_ICON_PAINTABLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_PAINTABLE))
 
#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_IS_ICON_THEME(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME))
 
#define GTK_ICON_THEME_ERROR   gtk_icon_theme_error_quark ()
 

Typedefs

typedef struct _GtkIconPaintable GtkIconPaintable
 
typedef struct _GtkIconTheme GtkIconTheme
 

Enumerations

enum  GtkIconLookupFlags { GTK_ICON_LOOKUP_FORCE_REGULAR = 1 << 0 , GTK_ICON_LOOKUP_FORCE_SYMBOLIC = 1 << 1 , GTK_ICON_LOOKUP_PRELOAD = 1 << 2 }
 
enum  GtkIconThemeError { GTK_ICON_THEME_NOT_FOUND , GTK_ICON_THEME_FAILED }
 

Functions

GDK_AVAILABLE_IN_ALL GQuark gtk_icon_theme_error_quark (void)
 
GDK_AVAILABLE_IN_ALL GType gtk_icon_theme_get_type (void) G_GNUC_CONST
 
GDK_AVAILABLE_IN_ALL GtkIconThemegtk_icon_theme_new (void)
 
GDK_AVAILABLE_IN_ALL GtkIconThemegtk_icon_theme_get_for_display (GdkDisplay *display)
 
GDK_AVAILABLE_IN_ALL GdkDisplaygtk_icon_theme_get_display (GtkIconTheme *self)
 
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_search_path (GtkIconTheme *self, const char *const *path)
 
GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_search_path (GtkIconTheme *self)
 
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_search_path (GtkIconTheme *self, const char *path)
 
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_resource_path (GtkIconTheme *self, const char *const *path)
 
GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_resource_path (GtkIconTheme *self)
 
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_resource_path (GtkIconTheme *self, const char *path)
 
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_theme_name (GtkIconTheme *self, const char *theme_name)
 
GDK_AVAILABLE_IN_ALL char * gtk_icon_theme_get_theme_name (GtkIconTheme *self)
 
GDK_AVAILABLE_IN_ALL gboolean gtk_icon_theme_has_icon (GtkIconTheme *self, const char *icon_name)
 
GDK_AVAILABLE_IN_4_2 gboolean gtk_icon_theme_has_gicon (GtkIconTheme *self, GIcon *gicon)
 
GDK_AVAILABLE_IN_ALL int * gtk_icon_theme_get_icon_sizes (GtkIconTheme *self, const char *icon_name)
 
GDK_AVAILABLE_IN_ALL GtkIconPaintablegtk_icon_theme_lookup_icon (GtkIconTheme *self, const char *icon_name, const char *fallbacks[], int size, int scale, GtkTextDirection direction, GtkIconLookupFlags flags)
 
GDK_AVAILABLE_IN_ALL GtkIconPaintablegtk_icon_theme_lookup_by_gicon (GtkIconTheme *self, GIcon *icon, int size, int scale, GtkTextDirection direction, GtkIconLookupFlags flags)
 
GDK_AVAILABLE_IN_ALL GtkIconPaintablegtk_icon_paintable_new_for_file (GFile *file, int size, int scale)
 
GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_icon_names (GtkIconTheme *self)
 
GDK_AVAILABLE_IN_ALL GType gtk_icon_paintable_get_type (void) G_GNUC_CONST
 
GDK_AVAILABLE_IN_ALL GFilegtk_icon_paintable_get_file (GtkIconPaintable *self)
 
GDK_AVAILABLE_IN_ALL const char * gtk_icon_paintable_get_icon_name (GtkIconPaintable *self)
 
GDK_AVAILABLE_IN_ALL gboolean gtk_icon_paintable_is_symbolic (GtkIconPaintable *self)
 

Macro Definition Documentation

◆ GTK_ICON_PAINTABLE

#define GTK_ICON_PAINTABLE ( obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_PAINTABLE, GtkIconPaintable))

Definition at line 30 of file gtkicontheme.h.

◆ GTK_ICON_THEME

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

Definition at line 34 of file gtkicontheme.h.

◆ GTK_ICON_THEME_ERROR

#define GTK_ICON_THEME_ERROR   gtk_icon_theme_error_quark ()

GTK_ICON_THEME_ERROR:

The GQuark used for GtkIconThemeError errors.

Definition at line 63 of file gtkicontheme.h.

◆ GTK_IS_ICON_PAINTABLE

#define GTK_IS_ICON_PAINTABLE ( obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_PAINTABLE))

Definition at line 31 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 35 of file gtkicontheme.h.

◆ GTK_TYPE_ICON_PAINTABLE

#define GTK_TYPE_ICON_PAINTABLE   (gtk_icon_paintable_get_type ())

Definition at line 29 of file gtkicontheme.h.

◆ GTK_TYPE_ICON_THEME

#define GTK_TYPE_ICON_THEME   (gtk_icon_theme_get_type ())

Definition at line 33 of file gtkicontheme.h.

Typedef Documentation

◆ GtkIconPaintable

typedef struct _GtkIconPaintable GtkIconPaintable

Definition at line 37 of file gtkicontheme.h.

◆ GtkIconTheme

typedef struct _GtkIconTheme GtkIconTheme

Definition at line 38 of file gtkicontheme.h.

Enumeration Type Documentation

◆ GtkIconLookupFlags

GtkIconLookupFlags: @GTK_ICON_LOOKUP_FORCE_REGULAR: Try to always load regular icons, even when symbolic icon names are given @GTK_ICON_LOOKUP_FORCE_SYMBOLIC: Try to always load symbolic icons, even when regular icon names are given @GTK_ICON_LOOKUP_PRELOAD: Starts loading the texture in the background so it is ready when later needed.

Used to specify options for gtk_icon_theme_lookup_icon().

Enumerator
GTK_ICON_LOOKUP_FORCE_REGULAR 
GTK_ICON_LOOKUP_FORCE_SYMBOLIC 
GTK_ICON_LOOKUP_PRELOAD 

Definition at line 51 of file gtkicontheme.h.

52{
GtkIconLookupFlags
@ GTK_ICON_LOOKUP_FORCE_SYMBOLIC
@ GTK_ICON_LOOKUP_PRELOAD
@ GTK_ICON_LOOKUP_FORCE_REGULAR

◆ GtkIconThemeError

GtkIconThemeError: @GTK_ICON_THEME_NOT_FOUND: The icon specified does not exist in the theme @GTK_ICON_THEME_FAILED: An unspecified error occurred.

Error codes for GtkIconTheme operations.

Enumerator
GTK_ICON_THEME_NOT_FOUND 
GTK_ICON_THEME_FAILED 

Definition at line 72 of file gtkicontheme.h.

72 {
GtkIconThemeError
@ GTK_ICON_THEME_NOT_FOUND
@ GTK_ICON_THEME_FAILED

Function Documentation

◆ gtk_icon_paintable_get_file()

GDK_AVAILABLE_IN_ALL GFile * gtk_icon_paintable_get_file ( GtkIconPaintable * self)

◆ gtk_icon_paintable_get_icon_name()

GDK_AVAILABLE_IN_ALL const char * gtk_icon_paintable_get_icon_name ( GtkIconPaintable * self)

◆ gtk_icon_paintable_get_type()

GDK_AVAILABLE_IN_ALL GType gtk_icon_paintable_get_type ( void )

◆ gtk_icon_paintable_is_symbolic()

GDK_AVAILABLE_IN_ALL gboolean gtk_icon_paintable_is_symbolic ( GtkIconPaintable * self)

◆ gtk_icon_paintable_new_for_file()

GDK_AVAILABLE_IN_ALL GtkIconPaintable * gtk_icon_paintable_new_for_file ( GFile * file,
int size,
int scale )

◆ gtk_icon_theme_add_resource_path()

GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_resource_path ( GtkIconTheme * self,
const char * path )

◆ gtk_icon_theme_add_search_path()

GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_search_path ( GtkIconTheme * self,
const char * path )

◆ gtk_icon_theme_error_quark()

GDK_AVAILABLE_IN_ALL GQuark gtk_icon_theme_error_quark ( void )

◆ gtk_icon_theme_get_display()

GDK_AVAILABLE_IN_ALL GdkDisplay * gtk_icon_theme_get_display ( GtkIconTheme * self)

◆ gtk_icon_theme_get_for_display()

GDK_AVAILABLE_IN_ALL GtkIconTheme * gtk_icon_theme_get_for_display ( GdkDisplay * display)

◆ gtk_icon_theme_get_icon_names()

GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_icon_names ( GtkIconTheme * self)

◆ gtk_icon_theme_get_icon_sizes()

GDK_AVAILABLE_IN_ALL int * gtk_icon_theme_get_icon_sizes ( GtkIconTheme * self,
const char * icon_name )

◆ gtk_icon_theme_get_resource_path()

GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_resource_path ( GtkIconTheme * self)

◆ gtk_icon_theme_get_search_path()

GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_search_path ( GtkIconTheme * self)

◆ gtk_icon_theme_get_theme_name()

GDK_AVAILABLE_IN_ALL char * gtk_icon_theme_get_theme_name ( GtkIconTheme * self)

◆ gtk_icon_theme_get_type()

GDK_AVAILABLE_IN_ALL GType gtk_icon_theme_get_type ( void )

◆ gtk_icon_theme_has_gicon()

GDK_AVAILABLE_IN_4_2 gboolean gtk_icon_theme_has_gicon ( GtkIconTheme * self,
GIcon * gicon )

◆ gtk_icon_theme_has_icon()

GDK_AVAILABLE_IN_ALL gboolean gtk_icon_theme_has_icon ( GtkIconTheme * self,
const char * icon_name )

◆ gtk_icon_theme_lookup_by_gicon()

GDK_AVAILABLE_IN_ALL GtkIconPaintable * gtk_icon_theme_lookup_by_gicon ( GtkIconTheme * self,
GIcon * icon,
int size,
int scale,
GtkTextDirection direction,
GtkIconLookupFlags flags )

◆ gtk_icon_theme_lookup_icon()

GDK_AVAILABLE_IN_ALL GtkIconPaintable * gtk_icon_theme_lookup_icon ( GtkIconTheme * self,
const char * icon_name,
const char * fallbacks[],
int size,
int scale,
GtkTextDirection direction,
GtkIconLookupFlags flags )

◆ gtk_icon_theme_new()

GDK_AVAILABLE_IN_ALL GtkIconTheme * gtk_icon_theme_new ( void )

◆ gtk_icon_theme_set_resource_path()

GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_resource_path ( GtkIconTheme * self,
const char *const * path )

◆ gtk_icon_theme_set_search_path()

GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_search_path ( GtkIconTheme * self,
const char *const * path )

◆ gtk_icon_theme_set_theme_name()

GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_theme_name ( GtkIconTheme * self,
const char * theme_name )