Ardour
9.0-pre0-384-ga76afae0e9
gtkmenushell.h
Go to the documentation of this file.
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 __GTK_MENU_SHELL_H__
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_TYPE_MENU_SHELL (gtk_menu_shell_get_type ())
41
#define GTK_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell))
42
#define GTK_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass))
43
#define GTK_IS_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_SHELL))
44
#define GTK_IS_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL))
45
#define GTK_MENU_SHELL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShellClass))
46
47
48
typedef
struct
_GtkMenuShell
GtkMenuShell
;
49
typedef
struct
_GtkMenuShellClass
GtkMenuShellClass
;
50
51
struct
_GtkMenuShell
52
{
53
GtkContainer
container
;
54
55
GList *
GSEAL
(children);
56
GtkWidget
*
GSEAL
(active_menu_item);
57
GtkWidget
*
GSEAL
(parent_menu_shell);
58
59
guint
GSEAL
(button);
60
guint32
GSEAL
(activate_time);
61
62
guint
GSEAL
(
active
) : 1;
63
guint
GSEAL
(have_grab) : 1;
64
guint
GSEAL
(have_xgrab) : 1;
65
guint
GSEAL
(ignore_leave) : 1;
/* unused */
66
guint
GSEAL
(menu_flag) : 1;
/* unused */
67
guint
GSEAL
(ignore_enter) : 1;
68
guint
GSEAL
(keyboard_mode) : 1;
69
};
70
71
struct
_GtkMenuShellClass
72
{
73
GtkContainerClass
parent_class
;
74
75
guint
submenu_placement
: 1;
76
77
void (*
deactivate
) (
GtkMenuShell
*menu_shell);
78
void (*
selection_done
) (
GtkMenuShell
*menu_shell);
79
80
void (*
move_current
) (
GtkMenuShell
*menu_shell,
81
GtkMenuDirectionType
direction);
82
void (*
activate_current
) (
GtkMenuShell
*menu_shell,
83
gboolean force_hide);
84
void (*
cancel
) (
GtkMenuShell
*menu_shell);
85
void (*
select_item
) (
GtkMenuShell
*menu_shell,
86
GtkWidget
*menu_item);
87
void (*
insert
) (
GtkMenuShell
*menu_shell,
88
GtkWidget
*child,
89
gint
position
);
90
gint (*
get_popup_delay
) (
GtkMenuShell
*menu_shell);
91
gboolean (*
move_selected
) (
GtkMenuShell
*menu_shell,
92
gint distance);
93
94
/* Padding for future expansion */
95
void (*
_gtk_reserved1
) (void);
96
void (*
_gtk_reserved2
) (void);
97
};
98
99
100
GType
gtk_menu_shell_get_type
(
void
) G_GNUC_CONST;
101
void
gtk_menu_shell_append
(
GtkMenuShell
*menu_shell,
102
GtkWidget
*child);
103
void
gtk_menu_shell_prepend
(
GtkMenuShell
*menu_shell,
104
GtkWidget
*child);
105
void
gtk_menu_shell_insert
(
GtkMenuShell
*menu_shell,
106
GtkWidget
*child,
107
gint
position
);
108
void
gtk_menu_shell_deactivate
(
GtkMenuShell
*menu_shell);
109
void
gtk_menu_shell_select_item
(
GtkMenuShell
*menu_shell,
110
GtkWidget
*menu_item);
111
void
gtk_menu_shell_deselect
(
GtkMenuShell
*menu_shell);
112
void
gtk_menu_shell_activate_item
(
GtkMenuShell
*menu_shell,
113
GtkWidget
*menu_item,
114
gboolean force_deactivate);
115
void
gtk_menu_shell_select_first
(
GtkMenuShell
*menu_shell,
116
gboolean search_sensitive);
117
void
_gtk_menu_shell_select_last
(
GtkMenuShell
*menu_shell,
118
gboolean search_sensitive);
119
gint
_gtk_menu_shell_get_popup_delay
(
GtkMenuShell
*menu_shell);
120
void
gtk_menu_shell_cancel
(
GtkMenuShell
*menu_shell);
121
122
void
_gtk_menu_shell_add_mnemonic
(
GtkMenuShell
*menu_shell,
123
guint keyval,
124
GtkWidget
*target);
125
void
_gtk_menu_shell_remove_mnemonic
(
GtkMenuShell
*menu_shell,
126
guint keyval,
127
GtkWidget
*target);
128
129
gboolean
gtk_menu_shell_get_take_focus
(
GtkMenuShell
*menu_shell);
130
void
gtk_menu_shell_set_take_focus
(
GtkMenuShell
*menu_shell,
131
gboolean take_focus);
132
133
void
_gtk_menu_shell_update_mnemonics
(
GtkMenuShell
*menu_shell);
134
void
_gtk_menu_shell_set_keyboard_mode
(
GtkMenuShell
*menu_shell,
135
gboolean keyboard_mode);
136
gboolean
_gtk_menu_shell_get_keyboard_mode
(
GtkMenuShell
*menu_shell);
137
138
G_END_DECLS
139
140
#endif
/* __GTK_MENU_SHELL_H__ */
gtkcontainer.h
GtkMenuDirectionType
GtkMenuDirectionType
Definition:
gtkenums.h:204
_gtk_menu_shell_remove_mnemonic
void _gtk_menu_shell_remove_mnemonic(GtkMenuShell *menu_shell, guint keyval, GtkWidget *target)
gtk_menu_shell_deactivate
void gtk_menu_shell_deactivate(GtkMenuShell *menu_shell)
gtk_menu_shell_append
void gtk_menu_shell_append(GtkMenuShell *menu_shell, GtkWidget *child)
gtk_menu_shell_get_take_focus
gboolean gtk_menu_shell_get_take_focus(GtkMenuShell *menu_shell)
gtk_menu_shell_deselect
void gtk_menu_shell_deselect(GtkMenuShell *menu_shell)
_gtk_menu_shell_get_popup_delay
gint _gtk_menu_shell_get_popup_delay(GtkMenuShell *menu_shell)
gtk_menu_shell_prepend
void gtk_menu_shell_prepend(GtkMenuShell *menu_shell, GtkWidget *child)
_gtk_menu_shell_select_last
void _gtk_menu_shell_select_last(GtkMenuShell *menu_shell, gboolean search_sensitive)
gtk_menu_shell_get_type
GType gtk_menu_shell_get_type(void) G_GNUC_CONST
_gtk_menu_shell_get_keyboard_mode
gboolean _gtk_menu_shell_get_keyboard_mode(GtkMenuShell *menu_shell)
_gtk_menu_shell_set_keyboard_mode
void _gtk_menu_shell_set_keyboard_mode(GtkMenuShell *menu_shell, gboolean keyboard_mode)
gtk_menu_shell_activate_item
void gtk_menu_shell_activate_item(GtkMenuShell *menu_shell, GtkWidget *menu_item, gboolean force_deactivate)
gtk_menu_shell_insert
void gtk_menu_shell_insert(GtkMenuShell *menu_shell, GtkWidget *child, gint position)
gtk_menu_shell_cancel
void gtk_menu_shell_cancel(GtkMenuShell *menu_shell)
gtk_menu_shell_set_take_focus
void gtk_menu_shell_set_take_focus(GtkMenuShell *menu_shell, gboolean take_focus)
gtk_menu_shell_select_item
void gtk_menu_shell_select_item(GtkMenuShell *menu_shell, GtkWidget *menu_item)
_gtk_menu_shell_add_mnemonic
void _gtk_menu_shell_add_mnemonic(GtkMenuShell *menu_shell, guint keyval, GtkWidget *target)
_gtk_menu_shell_update_mnemonics
void _gtk_menu_shell_update_mnemonics(GtkMenuShell *menu_shell)
gtk_menu_shell_select_first
void gtk_menu_shell_select_first(GtkMenuShell *menu_shell, gboolean search_sensitive)
ARDOUR::Properties::active
PBD::PropertyDescriptor< bool > active
MIDI::position
@ position
Definition:
midi++2/midi++/types.h:51
_GtkContainerClass
Definition:
gtkcontainer.h:70
_GtkContainer
Definition:
gtkcontainer.h:55
_GtkMenuShellClass
Definition:
gtkmenushell.h:72
_GtkMenuShellClass::cancel
void(* cancel)(GtkMenuShell *menu_shell)
Definition:
gtkmenushell.h:84
_GtkMenuShellClass::select_item
void(* select_item)(GtkMenuShell *menu_shell, GtkWidget *menu_item)
Definition:
gtkmenushell.h:85
_GtkMenuShellClass::selection_done
void(* selection_done)(GtkMenuShell *menu_shell)
Definition:
gtkmenushell.h:78
_GtkMenuShellClass::activate_current
void(* activate_current)(GtkMenuShell *menu_shell, gboolean force_hide)
Definition:
gtkmenushell.h:82
_GtkMenuShellClass::get_popup_delay
gint(* get_popup_delay)(GtkMenuShell *menu_shell)
Definition:
gtkmenushell.h:90
_GtkMenuShellClass::_gtk_reserved1
void(* _gtk_reserved1)(void)
Definition:
gtkmenushell.h:95
_GtkMenuShellClass::insert
void(* insert)(GtkMenuShell *menu_shell, GtkWidget *child, gint position)
Definition:
gtkmenushell.h:87
_GtkMenuShellClass::move_selected
gboolean(* move_selected)(GtkMenuShell *menu_shell, gint distance)
Definition:
gtkmenushell.h:91
_GtkMenuShellClass::deactivate
void(* deactivate)(GtkMenuShell *menu_shell)
Definition:
gtkmenushell.h:77
_GtkMenuShellClass::move_current
void(* move_current)(GtkMenuShell *menu_shell, GtkMenuDirectionType direction)
Definition:
gtkmenushell.h:80
_GtkMenuShellClass::_gtk_reserved2
void(* _gtk_reserved2)(void)
Definition:
gtkmenushell.h:96
_GtkMenuShellClass::parent_class
GtkContainerClass parent_class
Definition:
gtkmenushell.h:73
_GtkMenuShellClass::submenu_placement
guint submenu_placement
Definition:
gtkmenushell.h:75
_GtkMenuShell
Definition:
gtkmenushell.h:52
_GtkMenuShell::container
GtkContainer container
Definition:
gtkmenushell.h:53
_GtkMenuShell::GSEAL
GtkWidget * GSEAL(parent_menu_shell)
_GtkMenuShell::GSEAL
guint GSEAL(button)
_GtkMenuShell::GSEAL
GtkWidget * GSEAL(active_menu_item)
_GtkMenuShell::GSEAL
guint32 GSEAL(activate_time)
_GtkMenuShell::GSEAL
GList * GSEAL(children)
_GtkWidget
Definition:
gtkwidget.h:531
libs
tk
ytk
ytk
gtk
gtkmenushell.h
Generated on Sat Nov 9 2024 06:31:44 for Ardour by
1.9.1