Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkcolordialog.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2022 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 <gdk/gdk.h>
26#include <gtk/gtkwindow.h>
27
29
30#define GTK_TYPE_COLOR_DIALOG (gtk_color_dialog_get_type ())
31
33G_DECLARE_FINAL_TYPE (GtkColorDialog, gtk_color_dialog, GTK, COLOR_DIALOG, GObject)
34
36GtkColorDialog *gtk_color_dialog_new (void);
37
39const char * gtk_color_dialog_get_title (GtkColorDialog *self);
40
42void gtk_color_dialog_set_title (GtkColorDialog *self,
43 const char *title);
44
46gboolean gtk_color_dialog_get_modal (GtkColorDialog *self);
47
49void gtk_color_dialog_set_modal (GtkColorDialog *self,
50 gboolean modal);
51
54
56void gtk_color_dialog_set_with_alpha (GtkColorDialog *self,
57 gboolean with_alpha);
58
60void gtk_color_dialog_choose_rgba (GtkColorDialog *self,
61 GtkWindow *parent,
62 const GdkRGBA *initial_color,
63 GCancellable *cancellable,
64 GAsyncReadyCallback callback,
65 gpointer user_data);
66
69 GAsyncResult *result,
70 GError **error);
71
#define GDK_AVAILABLE_IN_4_10
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
GDK_AVAILABLE_IN_4_10 void gtk_color_dialog_set_modal(GtkColorDialog *self, gboolean modal)
GDK_AVAILABLE_IN_4_10 gboolean gtk_color_dialog_get_with_alpha(GtkColorDialog *self)
GDK_AVAILABLE_IN_4_10 GdkRGBA * gtk_color_dialog_choose_rgba_finish(GtkColorDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_10 gboolean gtk_color_dialog_get_modal(GtkColorDialog *self)
GDK_AVAILABLE_IN_4_10 void gtk_color_dialog_choose_rgba(GtkColorDialog *self, GtkWindow *parent, const GdkRGBA *initial_color, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_10 void gtk_color_dialog_set_with_alpha(GtkColorDialog *self, gboolean with_alpha)
GDK_AVAILABLE_IN_4_10 const char * gtk_color_dialog_get_title(GtkColorDialog *self)
GDK_AVAILABLE_IN_4_10 void gtk_color_dialog_set_title(GtkColorDialog *self, const char *title)
GDK_AVAILABLE_IN_4_10 GDK_AVAILABLE_IN_4_10 GtkColorDialog * gtk_color_dialog_new(void)
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)