package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Popover_menu/index.html
Module Wrappers.Popover_menu
type t =
[ `popover_menu | `popover | `widget | `initially_unowned | `object_ ]
Gobject.objval new_from_model : Ocgtk_gio.Gio.Wrappers.Menu_model.t option -> tCreate a new PopoverMenu
val new_from_model_full :
Ocgtk_gio.Gio.Wrappers.Menu_model.t ->
Gtk_enums.popovermenuflags ->
tCreate a new PopoverMenu
Sets a new menu model on @popover.
The existing contents of @popover are removed, and the @popover is populated with new contents according to @model.
val set_flags : t -> Gtk_enums.popovermenuflags -> unitSets the flags that @popover uses to create/display a menu from its model.
If a model is set and the flags change, contents are rebuilt, so if setting properties individually, set flags before model to avoid a redundant rebuild.
val remove_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj ->
boolRemoves a widget that has previously been added with method@Gtk.PopoverMenu.add_child()
Returns the menu model used to populate the popover.
val get_flags : t -> Gtk_enums.popovermenuflagsReturns the flags that @popover uses to create/display a menu from its model.
val add_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj ->
string ->
boolAdds a custom widget to a generated menu.
For this to work, the menu model of @popover must have an item with a `custom` attribute that matches @id.
Get property: visible-submenu
Set property: visible-submenu