Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkwindow.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
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/*
19 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 */
24
25#pragma once
26
27
28#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29#error "Only <gtk/gtk.h> can be included directly."
30#endif
31
32#include <gtk/gtkapplication.h>
33#include <gtk/gtkaccelgroup.h>
34#include <gtk/gtkwidget.h>
35
37
38#define GTK_TYPE_WINDOW (gtk_window_get_type ())
39#define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_WINDOW, GtkWindow))
40#define GTK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW, GtkWindowClass))
41#define GTK_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_WINDOW))
42#define GTK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW))
43#define GTK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW, GtkWindowClass))
44
48typedef struct _GtkWindowGroupPrivate GtkWindowGroupPrivate;
49
54
55/**
56 * GtkWindowClass:
57 * @parent_class: The parent class.
58 * @activate_focus: Activates the current focused widget within the window.
59 * @activate_default: Activates the default widget for the window.
60 * @keys_changed: Signal gets emitted when the set of accelerators or
61 * mnemonics that are associated with window changes.
62 * @enable_debugging: Class handler for the `GtkWindow::enable-debugging`
63 * keybinding signal.
64 * @close_request: Class handler for the `GtkWindow::close-request` signal.
65 */
67{
69
70 /*< public >*/
71
72 /* G_SIGNAL_ACTION signals for keybindings */
73
74 void (* activate_focus) (GtkWindow *window);
75 void (* activate_default) (GtkWindow *window);
76 void (* keys_changed) (GtkWindow *window);
78 gboolean toggle);
80
81 /*< private >*/
83};
84
91 const char *title);
93const char * gtk_window_get_title (GtkWindow *window);
96 const char *startup_id);
99 GtkWidget *focus);
104 GtkWidget *default_widget);
107
110 GtkWindow *parent);
115 gboolean setting);
120 gboolean setting);
125 gboolean setting);
130 gboolean setting);
133
136 gboolean resizable);
139
142 GdkDisplay *display);
143
146
149 gboolean setting);
154 gboolean setting);
157
160 const char *name);
162const char * gtk_window_get_icon_name (GtkWindow *window);
167
170
171/* If window is set modal, input will be grabbed when show and released when hide */
174 gboolean modal);
178GListModel *gtk_window_get_toplevels (void);
181
186 guint32 timestamp);
201 GdkMonitor *monitor);
204
205/* Set initial default size of the window (does not constrain user
206 * resize operations)
207 */
210 int width,
211 int height);
214 int *width,
215 int *height);
216
221
222
227 GtkApplication *application);
228
231 GtkWidget *child);
234
237 GtkWidget *titlebar);
240
243
246
249
252
255
258 gboolean handle_menubar_accel);
261
264
266
#define GDK_AVAILABLE_IN_4_2
#define GDK_AVAILABLE_IN_4_12
#define GDK_DEPRECATED_IN_4_14_FOR(f)
#define GDK_AVAILABLE_IN_ALL
struct _GdkMonitor GdkMonitor
Definition gdkmonitor.h:36
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
unsigned int guint32
Definition glibconfig.h:57
typedefG_BEGIN_DECLS struct _GList GList
Definition glist.h:39
#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_AVAILABLE_IN_ALL void gtk_window_fullscreen_on_monitor(GtkWindow *window, GdkMonitor *monitor)
GDK_AVAILABLE_IN_ALL void gtk_window_set_modal(GtkWindow *window, gboolean modal)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_resizable(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_interactive_debugging(gboolean enable)
GDK_AVAILABLE_IN_ALL void gtk_window_unminimize(GtkWindow *window)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_decorated(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_focus(GtkWindow *window, GtkWidget *focus)
GDK_AVAILABLE_IN_4_2 void gtk_window_set_handle_menubar_accel(GtkWindow *window, gboolean handle_menubar_accel)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_deletable(GtkWindow *window)
GDK_AVAILABLE_IN_ALL GtkWindow * gtk_window_get_transient_for(GtkWindow *window)
GDK_AVAILABLE_IN_ALL const char * gtk_window_get_title(GtkWindow *window)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_window_get_focus(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_unmaximize(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_transient_for(GtkWindow *window, GtkWindow *parent)
GDK_AVAILABLE_IN_ALL void gtk_window_set_icon_name(GtkWindow *window, const char *name)
GDK_AVAILABLE_IN_ALL void gtk_window_set_mnemonics_visible(GtkWindow *window, gboolean setting)
GDK_AVAILABLE_IN_ALL void gtk_window_set_startup_id(GtkWindow *window, const char *startup_id)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_has_group(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_fullscreen(GtkWindow *window)
GDK_AVAILABLE_IN_ALL GType gtk_window_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL void gtk_window_set_focus_visible(GtkWindow *window, gboolean setting)
GDK_AVAILABLE_IN_ALL GtkWindowGroup * gtk_window_get_group(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_auto_startup_notification(gboolean setting)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_mnemonics_visible(GtkWindow *window)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_hide_on_close(GtkWindow *window)
GDK_AVAILABLE_IN_ALL GtkApplication * gtk_window_get_application(GtkWindow *window)
GDK_AVAILABLE_IN_ALL const char * gtk_window_get_icon_name(GtkWindow *window)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_focus_visible(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_get_default_size(GtkWindow *window, int *width, int *height)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_window_get_child(GtkWindow *window)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_is_fullscreen(GtkWindow *window)
GDK_AVAILABLE_IN_4_2 gboolean gtk_window_get_handle_menubar_accel(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_display(GtkWindow *window, GdkDisplay *display)
GDK_AVAILABLE_IN_ALL void gtk_window_set_child(GtkWindow *window, GtkWidget *child)
GDK_AVAILABLE_IN_ALL void gtk_window_set_application(GtkWindow *window, GtkApplication *application)
GDK_AVAILABLE_IN_ALL void gtk_window_minimize(GtkWindow *window)
GDK_AVAILABLE_IN_ALL const char * gtk_window_get_default_icon_name(void)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_destroy_with_parent(GtkWindow *window)
struct _GtkWindowGroupPrivate GtkWindowGroupPrivate
Definition gtkwindow.h:48
GDK_AVAILABLE_IN_ALL GList * gtk_window_list_toplevels(void)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_window_get_default_widget(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_hide_on_close(GtkWindow *window, gboolean setting)
GDK_AVAILABLE_IN_ALL GListModel * gtk_window_get_toplevels(void)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_is_active(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_unfullscreen(GtkWindow *window)
GDK_AVAILABLE_IN_4_12 gboolean gtk_window_is_suspended(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_destroy_with_parent(GtkWindow *window, gboolean setting)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_get_modal(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_decorated(GtkWindow *window, gboolean setting)
GDK_AVAILABLE_IN_ALL void gtk_window_maximize(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_destroy(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_default_widget(GtkWindow *window, GtkWidget *default_widget)
GDK_AVAILABLE_IN_ALL void gtk_window_set_resizable(GtkWindow *window, gboolean resizable)
GDK_AVAILABLE_IN_ALL void gtk_window_set_default_size(GtkWindow *window, int width, int height)
GDK_AVAILABLE_IN_ALL void gtk_window_close(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_titlebar(GtkWindow *window, GtkWidget *titlebar)
GDK_AVAILABLE_IN_ALL void gtk_window_present(GtkWindow *window)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_window_get_titlebar(GtkWindow *window)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_window_new(void)
GDK_AVAILABLE_IN_ALL void gtk_window_set_deletable(GtkWindow *window, gboolean setting)
GDK_AVAILABLE_IN_ALL gboolean gtk_window_is_maximized(GtkWindow *window)
GDK_AVAILABLE_IN_ALL void gtk_window_set_title(GtkWindow *window, const char *title)
GDK_AVAILABLE_IN_ALL void gtk_window_set_default_icon_name(const char *name)
void gtk_window_present_with_time(GtkWindow *window, guint32 timestamp)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
const char * name
Definition lsqlite3.c:2154
void(* activate_focus)(GtkWindow *window)
Definition gtkwindow.h:74
gboolean(* close_request)(GtkWindow *window)
Definition gtkwindow.h:79
void(* keys_changed)(GtkWindow *window)
Definition gtkwindow.h:76
GtkWidgetClass parent_class
Definition gtkwindow.h:68
void(* activate_default)(GtkWindow *window)
Definition gtkwindow.h:75
gpointer padding[8]
Definition gtkwindow.h:82
gboolean(* enable_debugging)(GtkWindow *window, gboolean toggle)
Definition gtkwindow.h:77
GtkWidget parent_instance
Definition gtkwindow.h:52