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#ifndef __GTK_NATIVE_DIALOG_H__
20#define __GTK_NATIVE_DIALOG_H__
21
22#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gtk/gtk.h> can be included directly."
24#endif
25
26#include <gtk/gtkwindow.h>
27
28G_BEGIN_DECLS
29
30#define GTK_TYPE_NATIVE_DIALOG (gtk_native_dialog_get_type ())
31
32GDK_AVAILABLE_IN_ALL
33G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
34
35/**
36 * GtkNativeDialogClass:
37 * @response: class handler for the `GtkNativeDialog::response` signal
38 *
39 * Class structure for `GtkNativeDialog`.
40 */
41struct _GtkNativeDialogClass
42{
43 /*< private >*/
44 GObjectClass parent_class;
45
46 /*< public >*/
47 void (* response) (GtkNativeDialog *self, int response_id);
48
49 /* <private> */
50 void (* show) (GtkNativeDialog *self);
51 void (* hide) (GtkNativeDialog *self);
52
53 /* Padding for future expansion */
54 void (*_gtk_reserved1) (void);
55 void (*_gtk_reserved2) (void);
56 void (*_gtk_reserved3) (void);
57 void (*_gtk_reserved4) (void);
58};
59
60GDK_AVAILABLE_IN_ALL
61void gtk_native_dialog_show (GtkNativeDialog *self);
62GDK_AVAILABLE_IN_ALL
63void gtk_native_dialog_hide (GtkNativeDialog *self);
64GDK_AVAILABLE_IN_ALL
65void gtk_native_dialog_destroy (GtkNativeDialog *self);
66GDK_AVAILABLE_IN_ALL
67gboolean gtk_native_dialog_get_visible (GtkNativeDialog *self);
68GDK_AVAILABLE_IN_ALL
69void gtk_native_dialog_set_modal (GtkNativeDialog *self,
70 gboolean modal);
71GDK_AVAILABLE_IN_ALL
72gboolean gtk_native_dialog_get_modal (GtkNativeDialog *self);
73GDK_AVAILABLE_IN_ALL
74void gtk_native_dialog_set_title (GtkNativeDialog *self,
75 const char *title);
76GDK_AVAILABLE_IN_ALL
77const char * gtk_native_dialog_get_title (GtkNativeDialog *self);
78GDK_AVAILABLE_IN_ALL
79void gtk_native_dialog_set_transient_for (GtkNativeDialog *self,
80 GtkWindow *parent);
81GDK_AVAILABLE_IN_ALL
82GtkWindow * gtk_native_dialog_get_transient_for (GtkNativeDialog *self);
83
84G_END_DECLS
85
86#endif /* __GTK_NATIVE_DIALOG_H__ */
87

source code of gtk/gtk/gtknativedialog.h