]> Pileus Git - ~andy/gtk/blob - gtk/gtkwindowprivate.h
Hide GtkWindowGroup members
[~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 "gtkwindow.h"
25
26 G_BEGIN_DECLS
27
28 void            _gtk_window_internal_set_focus (GtkWindow *window,
29                                                 GtkWidget *focus);
30 void            gtk_window_remove_embedded_xid (GtkWindow       *window,
31                                                 GdkNativeWindow  xid);
32 void            gtk_window_add_embedded_xid    (GtkWindow       *window,
33                                                 GdkNativeWindow  xid);
34 void            _gtk_window_reposition         (GtkWindow *window,
35                                                 gint       x,
36                                                 gint       y);
37 void            _gtk_window_constrain_size     (GtkWindow *window,
38                                                 gint       width,
39                                                 gint       height,
40                                                 gint      *new_width,
41                                                 gint      *new_height);
42 void            _gtk_window_group_add_grab    (GtkWindowGroup *window_group,
43                                                GtkWidget      *widget);
44 void            _gtk_window_group_remove_grab (GtkWindowGroup *window_group,
45                                                GtkWidget      *widget);
46 void            _gtk_window_group_add_device_grab    (GtkWindowGroup   *window_group,
47                                                       GtkWidget        *widget,
48                                                       GdkDevice        *device,
49                                                       gboolean          block_others);
50 void            _gtk_window_group_remove_device_grab (GtkWindowGroup   *window_group,
51                                                       GtkWidget        *widget,
52                                                       GdkDevice        *device);
53
54 gboolean        _gtk_window_group_widget_is_blocked_for_device (GtkWindowGroup *window_group,
55                                                                 GtkWidget      *widget,
56                                                                 GdkDevice      *device);
57
58 void            _gtk_window_set_has_toplevel_focus (GtkWindow *window,
59                                                     gboolean   has_toplevel_focus);
60 void            _gtk_window_unset_focus_and_default (GtkWindow *window,
61                                                      GtkWidget *widget);
62
63 void            _gtk_window_set_is_active          (GtkWindow *window,
64                                                     gboolean   is_active);
65
66 void            _gtk_window_set_is_toplevel        (GtkWindow *window,
67                                                     gboolean   is_toplevel);
68
69 void            _gtk_window_get_wmclass            (GtkWindow  *window,
70                                                     gchar     **wmclass_name,
71                                                     gchar     **wmclass_class);
72
73 typedef void (*GtkWindowKeysForeachFunc) (GtkWindow      *window,
74                                           guint           keyval,
75                                           GdkModifierType modifiers,
76                                           gboolean        is_mnemonic,
77                                           gpointer        data);
78
79 void _gtk_window_keys_foreach (GtkWindow               *window,
80                                GtkWindowKeysForeachFunc func,
81                                gpointer                 func_data);
82
83 /* --- internal (GtkAcceleratable) --- */
84 gboolean        _gtk_window_query_nonaccels     (GtkWindow      *window,
85                                                  guint           accel_key,
86                                                  GdkModifierType accel_mods);
87
88 G_END_DECLS
89
90 #endif /* __GTK_WINDOW_PRIVATE_H__ */