AppStreamCompose.IconPolicyIter¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
dummy1 |
r |
||
dummy2 |
r |
||
dummy3 |
r |
||
dummy4 |
r |
||
dummy5 |
r |
||
dummy6 |
r |
Methods¶
|
|
|
Details¶
- class AppStreamCompose.IconPolicyIter¶
A
AppStreamCompose.IconPolicyIterstructure represents an iterator that can be used to iterate over the icon sizes / policy entries of anAppStreamCompose.IconPolicy.AppStreamCompose.IconPolicyIterstructures are typically allocated on the stack and then initialized withAppStreamCompose.IconPolicyIter.init().- init(ipolicy)¶
- Parameters:
ipolicy (
AppStreamCompose.IconPolicy) – anAppStreamCompose.IconPolicy
Initializes a policy iterator for the policy entry list and associates it it with ipolicy. The
AppStreamCompose.IconPolicyIterstructure is typically allocated on the stack and does not need to be freed explicitly.
- next()¶
- Returns:
Falseif the last entry has been reached.- size:
Destination of the returned icon size
- scale:
Destination of the returned icon scale factor
- state:
Destination of the returned designated icon state.
- Return type:
(
bool, size:int, scale:int, state:AppStreamCompose.IconState)
Returns the current icon policy entry and advances the iterator. Example:
AscIconPolicyIter iter; guint icon_size; guint icon_scale; AscIconState istate; asc_icon_policy_iter_init (&iter, ipolicy); while (asc_icon_policy_iter_next (&iter, &icon_size, &icon_scale, &istate)) { // do something with the icon entry data }