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/Bitset_iter/index.html

Module Wrappers.Bitset_iter

type t = [ `bitset_iter ] Gobject.obj

An opaque, stack-allocated struct for iterating over the elements of a `GtkBitset`.

Before a `GtkBitsetIter` can be used, it needs to be initialized with func@Gtk.BitsetIter.init_first, func@Gtk.BitsetIter.init_last or func@Gtk.BitsetIter.init_at.

val previous : t -> bool * int

Moves @iter to the previous value in the set.

If it was already pointing to the first value in the set, %FALSE is returned and @iter is invalidated.

val next : t -> bool * int

Moves @iter to the next value in the set.

If it was already pointing to the last value in the set, %FALSE is returned and @iter is invalidated.

val is_valid : t -> bool

Checks if @iter points to a valid value.

val get_value : t -> int

Gets the current value that @iter points to.

If @iter is not valid and method@Gtk.BitsetIter.is_valid returns %FALSE, this function returns 0.

val get_type : unit -> Gobject.Type.t