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, write to the |
16 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
17 | * Boston, MA 02111-1307, USA. |
18 | */ |
19 | |
20 | /* |
21 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
22 | * file for a list of people on the GTK+ Team. See the ChangeLog |
23 | * files for a list of changes. These files are distributed with |
24 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
25 | */ |
26 | |
27 | #ifndef __GTK_MENU_SHELL_H__ |
28 | #define |
29 | |
30 | |
31 | #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
32 | #error "Only <gtk/gtk.h> can be included directly." |
33 | #endif |
34 | |
35 | #include <gtk/gtkcontainer.h> |
36 | |
37 | |
38 | G_BEGIN_DECLS |
39 | |
40 | #define (gtk_menu_shell_get_type ()) |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell)) |
42 | #define (klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) |
43 | #define (obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_SHELL)) |
44 | #define (klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL)) |
45 | #define (obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) |
46 | |
47 | |
48 | typedef struct _GtkMenuShell ; |
49 | typedef struct _GtkMenuShellClass ; |
50 | |
51 | struct |
52 | { |
53 | GtkContainer ; |
54 | |
55 | GList *GSEAL (); |
56 | GtkWidget *GSEAL (); |
57 | GtkWidget *GSEAL (); |
58 | |
59 | guint GSEAL (); |
60 | guint32 GSEAL (); |
61 | |
62 | guint GSEAL () : 1; |
63 | guint GSEAL () : 1; |
64 | guint GSEAL () : 1; |
65 | guint GSEAL () : 1; /* unused */ |
66 | guint GSEAL () : 1; /* unused */ |
67 | guint GSEAL () : 1; |
68 | guint GSEAL () : 1; |
69 | }; |
70 | |
71 | struct |
72 | { |
73 | GtkContainerClass ; |
74 | |
75 | guint : 1; |
76 | |
77 | void (*) (GtkMenuShell *); |
78 | void (*) (GtkMenuShell *); |
79 | |
80 | void (*) (GtkMenuShell *, |
81 | GtkMenuDirectionType direction); |
82 | void (*) (GtkMenuShell *, |
83 | gboolean force_hide); |
84 | void (*) (GtkMenuShell *); |
85 | void (*) (GtkMenuShell *, |
86 | GtkWidget *); |
87 | void (*) (GtkMenuShell *, |
88 | GtkWidget *child, |
89 | gint position); |
90 | gint (*) (GtkMenuShell *); |
91 | gboolean (*) (GtkMenuShell *, |
92 | gint distance); |
93 | |
94 | /* Padding for future expansion */ |
95 | void (*) (void); |
96 | void (*) (void); |
97 | }; |
98 | |
99 | |
100 | GType (void) G_GNUC_CONST; |
101 | void (GtkMenuShell *, |
102 | GtkWidget *child); |
103 | void (GtkMenuShell *, |
104 | GtkWidget *child); |
105 | void (GtkMenuShell *, |
106 | GtkWidget *child, |
107 | gint position); |
108 | void (GtkMenuShell *); |
109 | void (GtkMenuShell *, |
110 | GtkWidget *); |
111 | void (GtkMenuShell *); |
112 | void (GtkMenuShell *, |
113 | GtkWidget *, |
114 | gboolean force_deactivate); |
115 | void (GtkMenuShell *, |
116 | gboolean search_sensitive); |
117 | void (GtkMenuShell *, |
118 | gboolean search_sensitive); |
119 | gint (GtkMenuShell *); |
120 | void (GtkMenuShell *); |
121 | |
122 | void (GtkMenuShell *, |
123 | guint keyval, |
124 | GtkWidget *target); |
125 | void (GtkMenuShell *, |
126 | guint keyval, |
127 | GtkWidget *target); |
128 | |
129 | gboolean (GtkMenuShell *); |
130 | void (GtkMenuShell *, |
131 | gboolean take_focus); |
132 | |
133 | void (GtkMenuShell *); |
134 | void (GtkMenuShell *, |
135 | gboolean keyboard_mode); |
136 | gboolean (GtkMenuShell *); |
137 | |
138 | G_END_DECLS |
139 | |
140 | #endif /* __GTK_MENU_SHELL_H__ */ |
141 | |