Module: Gio::LoadableIcon

Defined in:
(unknown)

Overview

GLoadableIcon extends the [ifaceGio.Icon] interface and adds the ability
to load icons from streams.

Instance Method Summary collapse

Instance Method Details

#load(icon, size, type, cancellable) ⇒ Gio::InputStream

icon, nil to ignore.
ignore.

Parameters:

  • icon (Gio::LoadableIcon) —

    a GLoadable::Icon.

  • size (Integer) —

    an integer.

  • type (String) —

    a location to store the type of the loaded

  • cancellable (Gio::Cancellable) —

    optional #GCancellable object, nil to

Returns:

#load_async(icon, size, cancellable, callback, user_data) ⇒ nil

Parameters:

  • icon (Gio::LoadableIcon) —

    a GLoadable::Icon.

  • size (Integer) —

    an integer.

  • cancellable (Gio::Cancellable) —

    optional #GCancellable object, nil to ignore.

  • callback (Gio::AsyncReadyCallback) —

    a GAsync::ReadyCallback
    to call when the request is satisfied

  • user_data (GObject) —

    the data to pass to callback function

Returns:

  • (nil)

#load_finish(icon, res, type) ⇒ Gio::InputStream

Returns a GInput::Stream to read the icon from.

Parameters:

  • icon (Gio::LoadableIcon) —

    a GLoadable::Icon.

  • res (Gio::AsyncResult) —

    a GAsync::Result.

  • type (String) —

    a location to store the type of the loaded
    icon, nil to ignore.

Returns: