Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtknativedialog.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * gtknativedialog.h: Native dialog
3 * Copyright (C) 2015, 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/gtkwindow.h>
26
28
29#define GTK_TYPE_NATIVE_DIALOG (gtk_native_dialog_get_type ())
30
32G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
33
34/**
35 * GtkNativeDialogClass:
36 * @response: class handler for the `GtkNativeDialog::response` signal
37 *
38 * Class structure for `GtkNativeDialog`.
39 */
41{
42 /*< private >*/
44
45 /*< public >*/
46 void (* response) (GtkNativeDialog *self, int response_id);
47
48 /* <private> */
49 void (* show) (GtkNativeDialog *self);
50 void (* hide) (GtkNativeDialog *self);
51
52 /* Padding for future expansion */
53 void (*_gtk_reserved1) (void);
54 void (*_gtk_reserved2) (void);
55 void (*_gtk_reserved3) (void);
56 void (*_gtk_reserved4) (void);
57};
58
60void gtk_native_dialog_show (GtkNativeDialog *self);
62void gtk_native_dialog_hide (GtkNativeDialog *self);
64void gtk_native_dialog_destroy (GtkNativeDialog *self);
68void gtk_native_dialog_set_modal (GtkNativeDialog *self,
69 gboolean modal);
71gboolean gtk_native_dialog_get_modal (GtkNativeDialog *self);
73void gtk_native_dialog_set_title (GtkNativeDialog *self,
74 const char *title);
76const char * gtk_native_dialog_get_title (GtkNativeDialog *self);
78void gtk_native_dialog_set_transient_for (GtkNativeDialog *self,
79 GtkWindow *parent);
82
84
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
GDK_AVAILABLE_IN_ALL void gtk_native_dialog_show(GtkNativeDialog *self)
GDK_AVAILABLE_IN_ALL void gtk_native_dialog_set_title(GtkNativeDialog *self, const char *title)
GDK_AVAILABLE_IN_ALL GtkWindow * gtk_native_dialog_get_transient_for(GtkNativeDialog *self)
GDK_AVAILABLE_IN_ALL void gtk_native_dialog_set_modal(GtkNativeDialog *self, gboolean modal)
GDK_AVAILABLE_IN_ALL gboolean gtk_native_dialog_get_visible(GtkNativeDialog *self)
GDK_AVAILABLE_IN_ALL void gtk_native_dialog_destroy(GtkNativeDialog *self)
GDK_AVAILABLE_IN_ALL const char * gtk_native_dialog_get_title(GtkNativeDialog *self)
GDK_AVAILABLE_IN_ALL void gtk_native_dialog_hide(GtkNativeDialog *self)
GDK_AVAILABLE_IN_ALL void gtk_native_dialog_set_transient_for(GtkNativeDialog *self, GtkWindow *parent)
GDK_AVAILABLE_IN_ALL gboolean gtk_native_dialog_get_modal(GtkNativeDialog *self)
#define G_DECLARE_DERIVABLE_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1705
gint gboolean
Definition gtypes.h:56