2.21 <GLoadableIcon>

Interface: <GLoadableIcon>

<GLoadableIcon> extends the <GIcon> interface and adds the ability to load icons from streams.

Procedures

Method: loadable-icon:load self size [cancellable] ⇒ %return type

Loads a loadable icon. For the asynchronous version of this function, see loadable-icon:load-async.

self

Passed: a <GLoadableIcon>.

a <GLoadableIcon>.

size

Passed: a 32-bit integer.

an integer.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a <GInputStream>.

a <GInputStream> to read the icon from.

type

Returned: a string.

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

Method: loadable-icon:load-async self size [cancellable] [callback]
Method: load-async self size [cancellable] [callback]

Loads an icon asynchronously. To finish this function, see loadable-icon:load-finish. For the synchronous, blocking version of this function, see loadable-icon:load.

self

Passed: a <GLoadableIcon>.

a <GLoadableIcon>.

size

Passed: a 32-bit integer.

an integer.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Method: loadable-icon:load-finish self res ⇒ %return type
Method: load-finish self res ⇒ %return type

Finishes an asynchronous icon load started in loadable-icon:load-async.

self

Passed: a <GLoadableIcon>.

a <GLoadableIcon>.

res

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a <GInputStream>.

a <GInputStream> to read the icon from.

type

Returned: a string.

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

Virtual methods

Virtual method: loadable-icon:do-load implementor self size [cancellable] ⇒ %return type

Loads a loadable icon. For the asynchronous version of this function, see loadable-icon:load-async.

To override it in a new class, give register-type #:vfuncs `((load . ,procedure)). The procedure is called as (procedure self size cancellable) ⇒ %return type.

implementor

Passed: the class whose implementation to call: a class that implements <GLoadableIcon>, or its GType number.

self

Passed: a <GLoadableIcon>.

a <GLoadableIcon>.

size

Passed: a 32-bit integer.

an integer.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a <GInputStream>.

a <GInputStream> to read the icon from.

type

Returned: a string.

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

Virtual method: loadable-icon:do-load-async implementor self size [cancellable] [callback]

Loads an icon asynchronously. To finish this function, see loadable-icon:load-finish. For the synchronous, blocking version of this function, see loadable-icon:load.

To override it in a new class, give register-type #:vfuncs `((load-async . ,procedure)). The procedure is called as (procedure self size cancellable callback user-data).

implementor

Passed: the class whose implementation to call: a class that implements <GLoadableIcon>, or its GType number.

self

Passed: a <GLoadableIcon>.

a <GLoadableIcon>.

size

Passed: a 32-bit integer.

an integer.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Virtual method: loadable-icon:do-load-finish implementor self res ⇒ %return type

Finishes an asynchronous icon load started in loadable-icon:load-async.

To override it in a new class, give register-type #:vfuncs `((load-finish . ,procedure)). The procedure is called as (procedure self res) ⇒ %return type.

implementor

Passed: the class whose implementation to call: a class that implements <GLoadableIcon>, or its GType number.

self

Passed: a <GLoadableIcon>.

a <GLoadableIcon>.

res

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a <GInputStream>.

a <GInputStream> to read the icon from.

type

Returned: a string.

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