Gjsify LogoGjsify Logo

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 [funcGtk.BitsetIter.init_first], [funcGtk.BitsetIter.init_last] or [funcGtk.BitsetIter.init_at].

record

Hierarchy

  • BitsetIter

Index

Constructors

Properties

name: string

Methods

  • getValue(): number
  • Gets the current value that iter points to.

    If iter is not valid and [methodGtk.BitsetIter.is_valid] returns %FALSE, this function returns 0.

    Returns number

  • isValid(): boolean
  • next(): [boolean, number]
  • 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]

  • previous(): [boolean, number]
  • 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]

  • 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

    • set: Bitset

      a GtkBitset

    • target: number

      target value to start iterating at

    Returns [boolean, BitsetIter, number]

  • Initializes an iterator for set and points it to the first value in set.

    If set is empty, %FALSE is returned and value is set to %G_MAXUINT.

    Parameters

    Returns [boolean, BitsetIter, number]

  • Initializes an iterator for set and points it to the last value in set.

    If set is empty, %FALSE is returned.

    Parameters

    Returns [boolean, BitsetIter, number]

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method