W Wrapl, The Programming Language

Libraries:Gtk:Gio:GLoadableIcon

Types

T

Extends the Gtk.Gio.GIcon.T interface and adds the ability to load icons from streams.



ParentT

Constants

InterfaceInfo : Std.Object.T

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



Methods

:Load(self @ T, size @ Std.Integer.SmallT, type @ Std.Object.T, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Gtk.Gio.GInputStream.T

Loads a loadable icon. For the asynchronous version of this function, see LoadAsync.

icon a T.
size an integer.
type a location to store the type of the loaded icon, NULL to ignore. [out][allow-none]
cancellable optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none]
error a Gtk.Glib.GError.T location to store the error occurring, or NULL to ignore.
Returns a Gtk.Gio.GInputStream.T to read the icon from. [transfer full]


:Load(_ @ ParentT, _ @ Std.Integer.SmallT, _ @ Std.Object.T, _ @ Gtk.Gio.GCancellable.T, _ @ Std.Object.T)

:LoadAsync(self @ T, size @ Std.Integer.SmallT, cancellable @ Gtk.Gio.GCancellable.T, callback @ Std.Function.T, user_data) : Std.Object.T

Loads an icon asynchronously. To finish this function, see LoadFinish. For the synchronous, blocking version of this function, see Load.

icon a T.
size an integer.
cancellable optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none]
callback a Gtk.Gio.GAsyncReadyCallback to call when the request is satisfied. [scope async]
user_data the data to pass to callback function. [closure]


:LoadAsync(_ @ ParentT, _ @ Std.Integer.SmallT, _ @ Gtk.Gio.GCancellable.T, _ @ Std.Function.T, _ @ Std.Address.T)

:LoadFinish(self @ T, res @ Gtk.Gio.GAsyncResult.T, type @ Std.Object.T, error @ Std.Object.T) : Gtk.Gio.GInputStream.T

Finishes an asynchronous icon load started in LoadAsync.

icon a T.
res a Gtk.Gio.GAsyncResult.T.
type a location to store the type of the loaded icon, NULL to ignore.
error a Gtk.Glib.GError.T location to store the error occurring, or NULL to ignore.
Returns a Gtk.Gio.GInputStream.T to read the icon from. [transfer full]


:LoadFinish(_ @ ParentT, _ @ Gtk.Gio.GAsyncResult.T, _ @ Std.Object.T, _ @ Std.Object.T)