7 class menu_shell_signals : 'b obj ->
9 inherit container_signals
10 constraint 'b = [>`menushell|`container|`widget]
12 method deactivate : callback:(unit -> unit) -> GtkSignal.id
15 class menu_item_signals : 'b obj ->
18 constraint 'b = [>`menuitem|`container|`item|`widget]
20 method activate : callback:(unit -> unit) -> GtkSignal.id
23 class menu_item_skel :
27 constraint 'a = [>`widget|`container|`menuitem]
29 method activate : unit -> unit
30 method add_accelerator :
32 ?modi:Gdk.Tags.modifier list ->
33 ?flags:Tags.accel_flag list -> Gdk.keysym -> unit
34 method as_item : Gtk.menu_item obj
35 method configure : show_toggle:bool -> show_indicator:bool -> unit
36 method remove_submenu : unit -> unit
37 method right_justify : unit -> unit
38 method set_submenu : menu -> unit
40 and menu_item : 'a obj ->
42 inherit menu_item_skel
43 constraint 'a = [>`widget|`container|`item|`menuitem]
45 method event : event_ops
46 method connect : menu_item_signals
48 and menu : Gtk.menu obj ->
50 inherit [menu_item] item_container
51 val obj : Gtk.menu obj
52 method add : menu_item -> unit
53 method event : event_ops
54 method append : menu_item -> unit
55 method as_menu : Gtk.menu obj
56 method children : menu_item list
57 method connect : menu_shell_signals
58 method deactivate : unit -> unit
59 method insert : menu_item -> pos:int -> unit
60 method popdown : unit -> unit
61 method popup : button:int -> time:int -> unit
62 method prepend : menu_item -> unit
63 method remove : menu_item -> unit
64 method set_accel_group : accel_group -> unit
65 method set_border_width : int -> unit
66 method private wrap : Gtk.widget obj -> menu_item
70 ?border_width:int -> ?packing:(menu -> unit) -> ?show:bool -> unit -> menu
76 ?packing:(menu_item -> unit) -> ?show:bool -> unit -> menu_item
81 ?packing:(menu_item -> unit) -> ?show:bool -> unit -> menu_item
83 class check_menu_item_signals : 'a obj ->
85 inherit menu_item_signals
86 constraint 'a = [>`checkmenuitem|`container|`item|`menuitem|`widget]
88 method toggled : callback:(unit -> unit) -> GtkSignal.id
91 class check_menu_item : 'a obj ->
93 inherit menu_item_skel
94 constraint 'a = [>`widget|`checkmenuitem|`container|`item|`menuitem]
97 method event : event_ops
98 method connect : check_menu_item_signals
99 method set_active : bool -> unit
100 method set_show_toggle : bool -> unit
101 method toggled : unit -> unit
103 val check_menu_item :
110 ?packing:(menu_item -> unit) -> ?show:bool -> unit -> check_menu_item
112 class radio_menu_item : Gtk.radio_menu_item obj ->
114 inherit check_menu_item
115 val obj : Gtk.radio_menu_item obj
116 method group : Gtk.radio_menu_item group
117 method set_group : Gtk.radio_menu_item group -> unit
119 val radio_menu_item :
120 ?group:Gtk.radio_menu_item group ->
127 ?packing:(menu_item -> unit) -> ?show:bool -> unit -> radio_menu_item
129 class menu_shell : 'a obj ->
131 inherit [menu_item] item_container
132 constraint 'a = [>`widget|`container|`menushell]
134 method event : event_ops
135 method deactivate : unit -> unit
136 method connect : menu_shell_signals
137 method insert : menu_item -> pos:int -> unit
138 method private wrap : Gtk.widget obj -> menu_item
145 ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> menu_shell
147 class option_menu : 'a obj ->
149 inherit GButton.button_skel
150 constraint 'a = [>`optionmenu|`button|`container|`widget]
152 method event : event_ops
153 method connect : GButton.button_signals
154 method get_menu : menu
155 method remove_menu : unit -> unit
156 method set_history : int -> unit
157 method set_menu : menu -> unit
163 ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> option_menu
166 ?accel_group:accel_group ->
167 ?accel_modi:Gdk.Tags.modifier list ->
168 ?accel_flags:Tags.accel_flag list ->
171 constraint 'a = #menu_shell
172 val flags : Tags.accel_flag list
173 val group : accel_group
174 val m : Gdk.Tags.modifier list
176 method accel_group : accel_group
177 method add_check_item :
180 ?callback:(bool -> unit) -> string -> check_menu_item
183 ?callback:(unit -> unit) ->
184 ?submenu:menu -> string -> menu_item
185 method add_radio_item :
186 ?group:Gtk.radio_menu_item group ->
189 ?callback:(bool -> unit) -> string -> radio_menu_item
190 method add_separator : unit -> menu_item
191 method add_submenu : ?key:Gdk.keysym -> string -> menu
192 method add_tearoff : unit -> menu_item
193 method private bind :
194 ?key:Gdk.keysym -> ?callback:(unit -> unit) -> menu_item -> unit