Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GtkBitsetIterLayout

[12:14] static extends: object

Generated struct layout helper for GIR record BitsetIter.

Methods

  • layout ()

    Returns the Panama struct layout for BitsetIter.

class: GtkBitsetIter

[30:7] extends: object

Iterates over the elements of a [struct@Gtk.Bitset]. GtkBitSetIter is an opaque, stack-allocated struct. 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].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GtkBitsetIter (Handle = null)

    Creates a new BitsetIter by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • get_value ()

    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.

    • @r The current value pointer to by @iter.
  • is_valid ()

    Checks if @iter points to a valid value.

    • @r %TRUE if @iter points to a valid value.
  • next ()

    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.

    • @p value is Set to the next value.
    • @r %TRUE if a next value existed.
  • previous ()

    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.

    • @p value is Set to the previous value.
    • @r %TRUE if a previous value existed.