Interface

Gio-2.0GioIconNamespace

interface IconNamespace {
    $gtype: GType<Gio.Icon>;
    prototype: Gio.Icon;
    deserialize(value: GLib.Variant): Gio.Icon;
    new_for_string(str: string): Gio.Icon;
}
Index

Properties

$gtype: GType<Gio.Icon>
prototype: Gio.Icon

Methods

  • Generate a Gio.Icon instance from str. This function can fail if str is not valid - see g_icon_to_string() for discussion.

    If your application or library provides one or more Gio.Icon implementations you need to ensure that each GObject.GType is registered with the type system prior to calling g_icon_new_for_string().

    Parameters

    • str: string

      A string obtained via g_icon_to_string().

    Returns Gio.Icon