Top | ![]() |
![]() |
![]() |
![]() |
AscIconPolicy * | asc_icon_policy_new () |
void | asc_icon_policy_set_policy () |
void | asc_icon_policy_iter_init () |
gboolean | asc_icon_policy_iter_next () |
#define | ASC_TYPE_ICON_POLICY |
struct | AscIconPolicyClass |
enum | AscIconState |
AscIconPolicy |
void asc_icon_policy_set_policy (AscIconPolicy *ipolicy
,guint icon_size
,guint icon_scale
,AscIconState state
);
Sets a designated state for an icon of the given size.
ipolicy |
an AscIconPolicy instance. |
|
icon_size |
the size of the icon to set policy for (e.g. 64 for 64x64px icons) |
|
icon_scale |
the icon scale factor, e.g. 1 |
|
state |
the designated AscIconState |
void asc_icon_policy_iter_init (AscIconPolicyIter *iter
,AscIconPolicy *ipolicy
);
Initializes a policy iterator for the policy entry list and associates it
it with ipolicy
.
The AscIconPolicyIter structure is typically allocated on the stack
and does not need to be freed explicitly.
gboolean asc_icon_policy_iter_next (AscIconPolicyIter *iter
,guint *size
,guint *scale
,AscIconState *state
);
Returns the current icon policy entry and advances the iterator. Example:
1 2 3 4 5 6 7 8 9 |
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 } |
Designated state for an icon of a given size.