BitsetIter#
- class BitsetIter(*args, **kwargs)#
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
init_first, init_last
or init_at.
Methods#
- class BitsetIter
- get_value() int#
Gets the current value that
iterpoints to.If
iteris not valid andis_validreturnsFalse, this function returns 0.
- classmethod init_at(target: int) tuple[bool, BitsetIter, int]#
Initializes
iterto point totarget.If
targetis not found, finds the next value after it. If no value >=targetexists inset, this function returnsFalse.- Parameters:
target – target value to start iterating at
- classmethod init_first() tuple[bool, BitsetIter, int]#
Initializes an iterator for
setand points it to the first value inset.If
setis empty,Falseis returned andvalueis set to %G_MAXUINT.
- classmethod init_last() tuple[bool, BitsetIter, int]#
Initializes an iterator for
setand points it to the last value inset.If
setis empty,Falseis returned.
Fields#
- class BitsetIter
- private_data#