AppStream.BrandingColorIter¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
dummy1 |
r |
||
dummy2 |
r |
||
dummy3 |
r |
||
dummy4 |
r |
||
dummy5 |
r |
||
dummy6 |
r |
Methods¶
|
|
|
Details¶
- class AppStream.BrandingColorIter¶
A
AppStream.BrandingColorIterstructure represents an iterator that can be used to iterate over the accent colors of anAppStream.Brandingobject.AppStream.BrandingColorIterstructures are typically allocated on the stack and then initialized withAppStream.BrandingColorIter.init().- init(branding)¶
- Parameters:
branding (
AppStream.Branding) – anAppStream.Branding
Initializes a color iterator for the accent color list and associates it it with branding. The
AppStream.BrandingColorIterstructure is typically allocated on the stack and does not need to be freed explicitly.
- next()¶
- Returns:
Falseif the last entry has been reached.- kind:
Destination of the returned color kind.
- scheme_preference:
Destination of the returned color’s scheme preference.
- value:
Destination of the returned color code.
- Return type:
(
bool, kind:AppStream.ColorKind, scheme_preference:AppStream.ColorSchemeKind, value:str)
Returns the current color entry and advances the iterator. Example:
AsBrandingColorIter iter; AsColorKind ckind; AsColorSchemeKind scheme_preference; const gchar *color_value; as_branding_color_iter_init (&iter, branding); while (as_branding_color_iter_next (&iter, &ckind, &scheme_preference, &color_value)) { // do something with the color data }