Class (GI Struct)

Gtk-4.0GtkBitsetIter

Iterates over the elements of a Gtk.Bitset.

`GtkBitSetIter is an opaque, stack-allocated struct.

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

Index

Constructors

Properties

$gtype: GType<BitsetIter>

Methods

  • Checks if iter points to a valid value.

    Returns boolean

    true if iter points to a valid value

  • 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.

    Returns [boolean, number]

    true if a next value existed

  • 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.

    Returns [boolean, number]

    true if a previous value existed

  • Initializes iter to point to target.

    If target is not found, finds the next value after it. If no value >= target exists in set, this function returns false.

    Parameters

    Returns [boolean, BitsetIter, number]