Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Various types of menus
type label =
| Label of simple_entry
| Dynamic of mutable_text
| Check of check_entry
| Layout of layout_entry
The depth
indicates the level of submenu. By default depth=0
. The bool
parameter indicate whether the menu should be initially shown.
val create :
?hide:bool ->
?name:string ->
?background:Layout.background ->
?select_bg:Layout.background ->
dst:Layout.t ->
t ->
Layout.t
By default, hide=false
. The dst
layout will contain the submenus.
val bar :
?background:Layout.background ->
?name:string ->
Layout.t ->
entry list ->
Layout.t
A menu bar, with drop-down submenus. bar dst entries
creates a layout which contains the menu bar on top of the dst
layout. The dst
layout should be big enough to contain the submenus. Any item flowing out of dst
will not get focus. The system will automatically try to shift the submenus if they are too wide, or add a scrollbar if they are too tall.