Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkcolorchooser.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gtk/gtk.h> can be included directly."
23#endif
24
25#include <gtk/gtkwidget.h>
26
28
29#define GTK_TYPE_COLOR_CHOOSER (gtk_color_chooser_get_type ())
30#define GTK_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER, GtkColorChooser))
31#define GTK_IS_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER))
32#define GTK_COLOR_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_COLOR_CHOOSER, GtkColorChooserInterface))
33
34typedef struct _GtkColorChooser GtkColorChooser;
36
38{
40
41 /* Methods */
42 void (* get_rgba) (GtkColorChooser *chooser,
43 GdkRGBA *color);
44 void (* set_rgba) (GtkColorChooser *chooser,
45 const GdkRGBA *color);
46
47 void (* add_palette) (GtkColorChooser *chooser,
48 GtkOrientation orientation,
49 int colors_per_line,
50 int n_colors,
51 GdkRGBA *colors);
52
53 /* Signals */
54 void (* color_activated) (GtkColorChooser *chooser,
55 const GdkRGBA *color);
56
57 /*< private >*/
58 /* Padding; remove in GTK-next */
60};
61
64
67 GdkRGBA *color);
70 const GdkRGBA *color);
73
76 gboolean use_alpha);
77
80 GtkOrientation orientation,
81 int colors_per_line,
82 int n_colors,
83 GdkRGBA *colors);
84
86
88
#define GDK_DEPRECATED_IN_4_10
#define GDK_AVAILABLE_IN_ALL
#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)
GDK_DEPRECATED_IN_4_10 void gtk_color_chooser_add_palette(GtkColorChooser *chooser, GtkOrientation orientation, int colors_per_line, int n_colors, GdkRGBA *colors)
struct _GtkColorChooser GtkColorChooser
GDK_AVAILABLE_IN_ALL GType gtk_color_chooser_get_type(void) G_GNUC_CONST
GDK_DEPRECATED_IN_4_10 gboolean gtk_color_chooser_get_use_alpha(GtkColorChooser *chooser)
GDK_DEPRECATED_IN_4_10 void gtk_color_chooser_set_rgba(GtkColorChooser *chooser, const GdkRGBA *color)
GDK_DEPRECATED_IN_4_10 void gtk_color_chooser_set_use_alpha(GtkColorChooser *chooser, gboolean use_alpha)
GDK_DEPRECATED_IN_4_10 void gtk_color_chooser_get_rgba(GtkColorChooser *chooser, GdkRGBA *color)
GtkOrientation
Definition gtkenums.h:438
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
void(* color_activated)(GtkColorChooser *chooser, const GdkRGBA *color)
void(* set_rgba)(GtkColorChooser *chooser, const GdkRGBA *color)
void(* add_palette)(GtkColorChooser *chooser, GtkOrientation orientation, int colors_per_line, int n_colors, GdkRGBA *colors)
void(* get_rgba)(GtkColorChooser *chooser, GdkRGBA *color)