]> Pileus Git - ~andy/gtk/blob - gtk/gtkwindowprivate.h
stylecontext: Do invalidation on first resize container
[~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, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __GTK_WINDOW_PRIVATE_H__
20 #define __GTK_WINDOW_PRIVATE_H__
21
22 #include <gdk/gdk.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_reposition         (GtkWindow *window,
31                                                 gint       x,
32                                                 gint       y);
33 void            _gtk_window_constrain_size     (GtkWindow *window,
34                                                 gint       width,
35                                                 gint       height,
36                                                 gint      *new_width,
37                                                 gint      *new_height);
38 void            _gtk_window_group_add_grab    (GtkWindowGroup *window_group,
39                                                GtkWidget      *widget);
40 void            _gtk_window_group_remove_grab (GtkWindowGroup *window_group,
41                                                GtkWidget      *widget);
42 void            _gtk_window_group_add_device_grab    (GtkWindowGroup   *window_group,
43                                                       GtkWidget        *widget,
44                                                       GdkDevice        *device,
45                                                       gboolean          block_others);
46 void            _gtk_window_group_remove_device_grab (GtkWindowGroup   *window_group,
47                                                       GtkWidget        *widget,
48                                                       GdkDevice        *device);
49
50 gboolean        _gtk_window_group_widget_is_blocked_for_device (GtkWindowGroup *window_group,
51                                                                 GtkWidget      *widget,
52                                                                 GdkDevice      *device);
53
54 void            _gtk_window_set_has_toplevel_focus (GtkWindow *window,
55                                                     gboolean   has_toplevel_focus);
56 void            _gtk_window_unset_focus_and_default (GtkWindow *window,
57                                                      GtkWidget *widget);
58
59 void            _gtk_window_set_is_active          (GtkWindow *window,
60                                                     gboolean   is_active);
61
62 void            _gtk_window_set_is_toplevel        (GtkWindow *window,
63                                                     gboolean   is_toplevel);
64
65 void            _gtk_window_get_wmclass            (GtkWindow  *window,
66                                                     gchar     **wmclass_name,
67                                                     gchar     **wmclass_class);
68
69 void            _gtk_window_set_allocation         (GtkWindow     *window,
70                                                     GtkAllocation *allocation);
71
72 typedef void (*GtkWindowKeysForeachFunc) (GtkWindow      *window,
73                                           guint           keyval,
74                                           GdkModifierType modifiers,
75                                           gboolean        is_mnemonic,
76                                           gpointer        data);
77
78 void _gtk_window_keys_foreach (GtkWindow               *window,
79                                GtkWindowKeysForeachFunc func,
80                                gpointer                 func_data);
81
82 /* --- internal (GtkAcceleratable) --- */
83 gboolean        _gtk_window_query_nonaccels     (GtkWindow      *window,
84                                                  guint           accel_key,
85                                                  GdkModifierType accel_mods);
86
87 void            _gtk_window_set_auto_mnemonics_visible (GtkWindow *window);
88
89 G_END_DECLS
90
91 #endif /* __GTK_WINDOW_PRIVATE_H__ */