]> Pileus Git - ~andy/gtk/blob - gtk/gtkwindowprivate.h
Merge branch 'master' into broadway
[~andy/gtk] / gtk / gtkwindowprivate.h
1
2 /* GTK - The GIMP Toolkit
3  * Copyright (C) 2010 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, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GTK_WINDOW_PRIVATE_H__
22 #define __GTK_WINDOW_PRIVATE_H__
23
24 #include <gdk/gdk.h>
25
26 #include "gtkwindow.h"
27
28 G_BEGIN_DECLS
29
30 void            _gtk_window_internal_set_focus (GtkWindow *window,
31                                                 GtkWidget *focus);
32 void            _gtk_window_reposition         (GtkWindow *window,
33                                                 gint       x,
34                                                 gint       y);
35 void            _gtk_window_constrain_size     (GtkWindow *window,
36                                                 gint       width,
37                                                 gint       height,
38                                                 gint      *new_width,
39                                                 gint      *new_height);
40 void            _gtk_window_group_add_grab    (GtkWindowGroup *window_group,
41                                                GtkWidget      *widget);
42 void            _gtk_window_group_remove_grab (GtkWindowGroup *window_group,
43                                                GtkWidget      *widget);
44 void            _gtk_window_group_add_device_grab    (GtkWindowGroup   *window_group,
45                                                       GtkWidget        *widget,
46                                                       GdkDevice        *device,
47                                                       gboolean          block_others);
48 void            _gtk_window_group_remove_device_grab (GtkWindowGroup   *window_group,
49                                                       GtkWidget        *widget,
50                                                       GdkDevice        *device);
51
52 gboolean        _gtk_window_group_widget_is_blocked_for_device (GtkWindowGroup *window_group,
53                                                                 GtkWidget      *widget,
54                                                                 GdkDevice      *device);
55
56 void            _gtk_window_set_has_toplevel_focus (GtkWindow *window,
57                                                     gboolean   has_toplevel_focus);
58 void            _gtk_window_unset_focus_and_default (GtkWindow *window,
59                                                      GtkWidget *widget);
60
61 void            _gtk_window_set_is_active          (GtkWindow *window,
62                                                     gboolean   is_active);
63
64 void            _gtk_window_set_is_toplevel        (GtkWindow *window,
65                                                     gboolean   is_toplevel);
66
67 void            _gtk_window_get_wmclass            (GtkWindow  *window,
68                                                     gchar     **wmclass_name,
69                                                     gchar     **wmclass_class);
70
71 typedef void (*GtkWindowKeysForeachFunc) (GtkWindow      *window,
72                                           guint           keyval,
73                                           GdkModifierType modifiers,
74                                           gboolean        is_mnemonic,
75                                           gpointer        data);
76
77 void _gtk_window_keys_foreach (GtkWindow               *window,
78                                GtkWindowKeysForeachFunc func,
79                                gpointer                 func_data);
80
81 /* --- internal (GtkAcceleratable) --- */
82 gboolean        _gtk_window_query_nonaccels     (GtkWindow      *window,
83                                                  guint           accel_key,
84                                                  GdkModifierType accel_mods);
85
86 G_END_DECLS
87
88 #endif /* __GTK_WINDOW_PRIVATE_H__ */