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.gio/Ocgtk_gio/Gio/Wrappers/Menu_link_iter/index.html

Module Wrappers.Menu_link_iter

type t = [ `menu_link_iter | `object_ ] Gobject.obj
val next : t -> bool

Attempts to advance the iterator to the next (possibly first) link.

%TRUE is returned on success, or %FALSE if there are no more links.

You must call this function when you first acquire the iterator to advance it to the first link (and determine if the first link exists at all).

val get_value : t -> [ `menu_model | `object_ ] Gobject.obj

Gets the linked #GMenuModel at the current iterator position.

The iterator is not advanced.

val get_name : t -> string

Gets the name of the link at the current iterator position.

The iterator is not advanced.