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
iter
points to.If
iter
is not valid andis_valid
returnsFalse
, this function returns 0.
- init_at(set: Bitset, target: int) tuple[bool, BitsetIter, int]
Initializes
iter
to point totarget
.If
target
is not found, finds the next value after it. If no value >=target
exists inset
, this function returnsFalse
.- Parameters:
set – a
GtkBitset
target – target value to start iterating at
- init_first(set: Bitset) tuple[bool, BitsetIter, int]
Initializes an iterator for
set
and points it to the first value inset
.If
set
is empty,False
is returned andvalue
is set to%G_MAXUINT
.- Parameters:
set – a
GtkBitset
- init_last(set: Bitset) tuple[bool, BitsetIter, int]
Initializes an iterator for
set
and points it to the last value inset
.If
set
is empty,False
is returned.- Parameters:
set – a
GtkBitset
Fields
- class BitsetIter
- private_data