Gtk.BitsetIter¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
private_data |
[ |
r |
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Details¶
- class Gtk.BitsetIter¶
Iterates over the elements of a [struct`Gtk`.Bitset].
`GtkBitSetIter is an opaque, stack-allocated struct.
Before a
GtkBitsetItercan be used, it needs to be initialized with [func`Gtk`.BitsetIter.init_first], [func`Gtk`.BitsetIter.init_last] or [func`Gtk`.BitsetIter.init_at].- classmethod init_at(set, target)[source]¶
- Parameters:
set (
Gtk.Bitset) – aGtkBitsettarget (
int) – target value to start iterating at
- Returns:
Trueif a value was found.- iter:
a pointer to an uninitialized
GtkBitsetIter- value:
Set to the found value in set
- Return type:
(
bool, iter:Gtk.BitsetIter, value:int)
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.
- classmethod init_first(set)[source]¶
- Parameters:
set (
Gtk.Bitset) – aGtkBitset- Returns:
Trueif set isn’t empty.- iter:
a pointer to an uninitialized
GtkBitsetIter- value:
Set to the first value in set
- Return type:
(
bool, iter:Gtk.BitsetIter, value:int)
Initializes an iterator for set and points it to the first value in set.
If set is empty,
Falseis returned and value is set toGObject.G_MAXUINT.
- classmethod init_last(set)[source]¶
- Parameters:
set (
Gtk.Bitset) – aGtkBitset- Returns:
Trueif set isn’t empty.- iter:
a pointer to an uninitialized
GtkBitsetIter- value:
Set to the last value in set
- Return type:
(
bool, iter:Gtk.BitsetIter, value:int)
Initializes an iterator for set and points it to the last value in set.
If set is empty,
Falseis returned.
- get_value()[source]¶
- Returns:
The current value pointer to by self
- Return type:
Gets the current value that self points to.
If self is not valid and [method`Gtk`.BitsetIter.is_valid] returns
False, this function returns 0.