GIconIface

GIconIface is used to implement GIcon types for various different systems. See #GThemedIcon and #GLoadableIcon for examples of how to implement this interface.

Members

Variables

equal
bool function(GIcon* icon1, GIcon* icon2) equal;

Checks if two #GIcons are equal.

fromTokens
GIcon* function(char** tokens, int numTokens, int version_, GError** _err) fromTokens;

Constructs a #GIcon from tokens. Set the #GError if the tokens are malformed. Don't implement if the #GIcon can't be serialized (Since 2.20).

gIface
GTypeInterface gIface;

The parent interface.

hash
uint function(GIcon* icon) hash;

A hash for a given #GIcon.

serialize
VariantC* function(GIcon* icon) serialize;

Serializes a #GIcon into a #GVariant. Since: 2.38

toTokens
bool function(GIcon* icon, GPtrArray* tokens, int* outVersion) toTokens;

Serializes a #GIcon into tokens. The tokens must not contain any whitespace. Don't implement if the #GIcon can't be serialized (Since 2.20).