]> Pileus Git - ~andy/gtk/blob - gtk/gtkbuttonprivate.h
Create a private header to access some GtkButton variables
[~andy/gtk] / gtk / gtkbuttonprivate.h
1 /* GTK - The GIMP Toolkit
2  *
3  * Copyright (C) 2010 Javier Jardón
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_BUTTON_PRIVATE_H__
20 #define __GTK_BUTTON_PRIVATE_H__
21
22 #include "gtkaction.h"
23
24 struct _GtkButtonPrivate
25 {
26   GtkAction             *action;
27   GtkPositionType        image_position;
28   GtkWidget             *image;
29
30   GdkDevice             *grab_keyboard;
31   GdkWindow             *event_window;
32
33   gchar         *label_text;
34
35   gfloat         xalign;
36   gfloat         yalign;
37
38   guint          activate_timeout;
39   guint32        grab_time;
40
41   guint          align_set             : 1;
42   guint          button_down           : 1;
43   guint          constructed           : 1;
44   guint          depressed             : 1;
45   guint          depress_on_activate   : 1;
46   guint          focus_on_click        : 1;
47   guint          image_is_stock        : 1;
48   guint          in_button             : 1;
49   guint          relief                : 2;
50   guint          use_action_appearance : 1;
51   guint          use_stock             : 1;
52   guint          use_underline         : 1;
53 };
54
55 #endif /* __GTK_BUTTON_PRIVATE_H__ */