Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkicontheme.h
Go to the documentation of this file.
1/* GtkIconTheme - a loader for icon themes
2 * gtk-icon-loader.h Copyright (C) 2002, 2003 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gtk/gtk.h> can be included directly."
22#endif
23
24#include <gdk/gdk.h>
25#include <gtk/gtkenums.h>
26
28
29#define GTK_TYPE_ICON_PAINTABLE (gtk_icon_paintable_get_type ())
30#define GTK_ICON_PAINTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_PAINTABLE, GtkIconPaintable))
31#define GTK_IS_ICON_PAINTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_PAINTABLE))
32
33#define GTK_TYPE_ICON_THEME (gtk_icon_theme_get_type ())
34#define GTK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme))
35#define GTK_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME))
36
37typedef struct _GtkIconPaintable GtkIconPaintable;
38typedef struct _GtkIconTheme GtkIconTheme;
39
40/**
41 * GtkIconLookupFlags:
42 * @GTK_ICON_LOOKUP_FORCE_REGULAR: Try to always load regular icons, even
43 * when symbolic icon names are given
44 * @GTK_ICON_LOOKUP_FORCE_SYMBOLIC: Try to always load symbolic icons, even
45 * when regular icon names are given
46 * @GTK_ICON_LOOKUP_PRELOAD: Starts loading the texture in the background
47 * so it is ready when later needed.
48 *
49 * Used to specify options for gtk_icon_theme_lookup_icon().
50 */
57
58/**
59 * GTK_ICON_THEME_ERROR:
60 *
61 * The `GQuark` used for `GtkIconThemeError` errors.
62 */
63#define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark ()
64
65/**
66 * GtkIconThemeError:
67 * @GTK_ICON_THEME_NOT_FOUND: The icon specified does not exist in the theme
68 * @GTK_ICON_THEME_FAILED: An unspecified error occurred.
69 *
70 * Error codes for `GtkIconTheme` operations.
71 **/
76
79
82
87
90
93 const char * const *path);
98 const char *path);
99
102 const char * const *path);
107 const char *path);
108
111 const char *theme_name);
114
117 const char *icon_name);
120 GIcon *gicon);
123 const char *icon_name);
126 const char *icon_name,
127 const char *fallbacks[],
128 int size,
129 int scale,
130 GtkTextDirection direction,
131 GtkIconLookupFlags flags);
134 GIcon *icon,
135 int size,
136 int scale,
137 GtkTextDirection direction,
138 GtkIconLookupFlags flags);
141 int size,
142 int scale);
145
148
155
158
160
#define GDK_AVAILABLE_IN_4_2
#define GDK_AVAILABLE_IN_ALL
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
struct _GIcon GIcon
Definition giotypes.h:92
struct _GFile GFile
Definition giotypes.h:74
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
G_BEGIN_DECLS typedef guint32 GQuark
Definition gquark.h:38
GtkTextDirection
Definition gtkenums.h:267
GDK_AVAILABLE_IN_ALL GtkIconTheme * gtk_icon_theme_get_for_display(GdkDisplay *display)
GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_resource_path(GtkIconTheme *self)
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_search_path(GtkIconTheme *self, const char *path)
GDK_AVAILABLE_IN_ALL char * gtk_icon_theme_get_theme_name(GtkIconTheme *self)
GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_search_path(GtkIconTheme *self)
GDK_AVAILABLE_IN_ALL GtkIconTheme * gtk_icon_theme_new(void)
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_theme_name(GtkIconTheme *self, const char *theme_name)
GtkIconThemeError
@ GTK_ICON_THEME_NOT_FOUND
@ GTK_ICON_THEME_FAILED
GDK_AVAILABLE_IN_ALL GtkIconPaintable * gtk_icon_theme_lookup_by_gicon(GtkIconTheme *self, GIcon *icon, int size, int scale, GtkTextDirection direction, GtkIconLookupFlags flags)
GDK_AVAILABLE_IN_ALL char ** gtk_icon_theme_get_icon_names(GtkIconTheme *self)
struct _GtkIconTheme GtkIconTheme
GDK_AVAILABLE_IN_ALL GType gtk_icon_theme_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GType gtk_icon_paintable_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GQuark gtk_icon_theme_error_quark(void)
GDK_AVAILABLE_IN_ALL gboolean gtk_icon_theme_has_icon(GtkIconTheme *self, const char *icon_name)
GDK_AVAILABLE_IN_ALL GFile * gtk_icon_paintable_get_file(GtkIconPaintable *self)
GDK_AVAILABLE_IN_ALL int * gtk_icon_theme_get_icon_sizes(GtkIconTheme *self, const char *icon_name)
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_resource_path(GtkIconTheme *self, const char *path)
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)
GDK_AVAILABLE_IN_ALL gboolean gtk_icon_paintable_is_symbolic(GtkIconPaintable *self)
GtkIconLookupFlags
@ GTK_ICON_LOOKUP_FORCE_SYMBOLIC
@ GTK_ICON_LOOKUP_PRELOAD
@ GTK_ICON_LOOKUP_FORCE_REGULAR
struct _GtkIconPaintable GtkIconPaintable
GDK_AVAILABLE_IN_ALL const char * gtk_icon_paintable_get_icon_name(GtkIconPaintable *self)
GDK_AVAILABLE_IN_ALL GdkDisplay * gtk_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_4_2 gboolean gtk_icon_theme_has_gicon(GtkIconTheme *self, GIcon *gicon)
GDK_AVAILABLE_IN_ALL GtkIconPaintable * gtk_icon_paintable_new_for_file(GFile *file, int size, int scale)
GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_resource_path(GtkIconTheme *self, const char *const *path)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56