Class (GI Struct)

AppStream-1.0AppStreamBrandingColorIter

A AppStream.BrandingColorIter structure represents an iterator that can be used to iterate over the accent colors of an AppStream.Branding object. AppStream.BrandingColorIter structures are typically allocated on the stack and then initialized with as_branding_color_iter_init().

Index

Constructors

Properties

Methods

Constructors

Properties

Methods

  • 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
    }

    Returns [boolean, AppStream.ColorKind | null, AppStream.ColorSchemeKind | null, string]

    false if the last entry has been reached.