Interface

Gio-2.0GioIconInterface

Interface for implementing Icon. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_equal(icon2?: Gio.Icon): boolean;
    vfunc_hash(): number;
    vfunc_serialize(): GLib.Variant<any>;
    vfunc_to_tokens(): [boolean, string[], number];
}

Hierarchy (View Summary)

Index

Methods

  • Serializes a Gio.Icon into a GLib.Variant. An equivalent Gio.Icon can be retrieved back by calling g_icon_deserialize() on the returned value. As serialization will avoid using raw icon data when possible, it only makes sense to transfer the GLib.Variant between processes on the same machine, (as opposed to over the network), and within the same file system namespace.

    Returns GLib.Variant<any>

  • Serializes the icon into string tokens. This is can be invoked when g_icon_new_for_string() is called.

    Returns [boolean, string[], number]