| |
1 /** |
| |
2 * GNT - The GLib Ncurses Toolkit |
| |
3 * |
| |
4 * GNT is the legal property of its developers, whose names are too numerous |
| |
5 * to list here. Please refer to the COPYRIGHT file distributed with this |
| |
6 * source distribution. |
| |
7 * |
| |
8 * This library is free software; you can redistribute it and/or modify |
| |
9 * it under the terms of the GNU General Public License as published by |
| |
10 * the Free Software Foundation; either version 2 of the License, or |
| |
11 * (at your option) any later version. |
| |
12 * |
| |
13 * This program is distributed in the hope that it will be useful, |
| |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
16 * GNU General Public License for more details. |
| |
17 * |
| |
18 * You should have received a copy of the GNU General Public License |
| |
19 * along with this program; if not, write to the Free Software |
| |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| |
21 */ |
| |
22 |
| 1 #ifndef GNT_MENUITEM_H |
23 #ifndef GNT_MENUITEM_H |
| 2 #define GNT_MENUITEM_H |
24 #define GNT_MENUITEM_H |
| 3 |
25 |
| 4 #include <glib.h> |
26 #include <glib.h> |
| 5 #include <glib-object.h> |
27 #include <glib-object.h> |
| 56 void (*gnt_reserved4)(void); |
78 void (*gnt_reserved4)(void); |
| 57 }; |
79 }; |
| 58 |
80 |
| 59 G_BEGIN_DECLS |
81 G_BEGIN_DECLS |
| 60 |
82 |
| |
83 /** |
| |
84 * |
| |
85 * |
| |
86 * @return |
| |
87 */ |
| 61 GType gnt_menuitem_get_gtype(void); |
88 GType gnt_menuitem_get_gtype(void); |
| 62 |
89 |
| 63 GntMenuItem *gnt_menuitem_new(const char *text); |
90 /** |
| |
91 * |
| |
92 * @param text |
| |
93 * |
| |
94 * @return |
| |
95 */ |
| |
96 GntMenuItem * gnt_menuitem_new(const char *text); |
| 64 |
97 |
| |
98 /** |
| |
99 * |
| |
100 * @param item |
| |
101 * @param callback |
| |
102 * @param data |
| |
103 */ |
| 65 void gnt_menuitem_set_callback(GntMenuItem *item, GntMenuItemCallback callback, gpointer data); |
104 void gnt_menuitem_set_callback(GntMenuItem *item, GntMenuItemCallback callback, gpointer data); |
| 66 |
105 |
| |
106 /** |
| |
107 * |
| |
108 * @param item |
| |
109 * @param menu |
| |
110 */ |
| 67 void gnt_menuitem_set_submenu(GntMenuItem *item, GntMenu *menu); |
111 void gnt_menuitem_set_submenu(GntMenuItem *item, GntMenu *menu); |
| 68 |
112 |
| 69 G_END_DECLS |
113 G_END_DECLS |
| 70 |
114 |
| 71 #endif /* GNT_MENUITEM_H */ |
115 #endif /* GNT_MENUITEM_H */ |