Interface

Gio-2.0GioLoadableIconInterface

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

interface Interface {
    vfunc_equal(icon2?: Gio.Icon): boolean;
    vfunc_hash(): number;
    vfunc_load(
        size: number,
        cancellable?: Gio.Cancellable,
    ): [Gio.InputStream, string];
    vfunc_load_async(
        size: number,
        cancellable?: Gio.Cancellable,
        callback?: AsyncReadyCallback<Gio.LoadableIcon.Interface>,
    ): void;
    vfunc_load_finish(res: Gio.AsyncResult): [Gio.InputStream, string];
    vfunc_serialize(): GLib.Variant<any>;
    vfunc_to_tokens(): [boolean, string[], number];
}

Hierarchy (View Summary)

Index

Methods

Methods - Inherited from Gio.Icon.Interface

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

    Returns [boolean, string[], number]