package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Popover_menu_bar/index.html

Module Wrappers.Popover_menu_bar

type t = [ `popover_menu_bar | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_from_model : Ocgtk_gio.Gio.Wrappers.Menu_model.t option -> t

Create a new PopoverMenuBar

val set_menu_model : t -> Ocgtk_gio.Gio.Wrappers.Menu_model.t option -> unit

Sets a menu model from which @bar should take its contents.

val remove_child : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> bool

Removes a widget that has previously been added with gtk_popover_menu_bar_add_child().

val get_menu_model : t -> Ocgtk_gio.Gio.Wrappers.Menu_model.t option

Returns the model from which the contents of @bar are taken.

val add_child : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> string -> bool

Adds a custom widget to a generated menubar.

For this to work, the menu model of @bar must have an item with a `custom` attribute that matches @id.