Gio.LoadableIcon¶
| Implementations: | |
|---|---|
Gio.BytesIcon, Gio.FileIcon |
|
Methods¶
load (size, cancellable) |
|
load_async (size, cancellable, callback, *user_data) |
|
load_finish (res) |
Virtual Methods¶
do_load (size, cancellable) |
|
do_load_async (size, cancellable, callback, *user_data) |
|
do_load_finish (res) |
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
-
class
Gio.LoadableIcon¶ Bases: GObject.GInterfaceStructure: Gio.LoadableIconIfaceExtends the
Gio.Iconinterface and adds the ability to load icons from streams.-
load(size, cancellable)[source]¶ Parameters: - size (
int) – an integer. - cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignore.
Raises: Returns: a
Gio.InputStreamto read the icon from.type: a location to store the type of the loaded icon, Noneto ignore.Return type: (
Gio.InputStream, type:str)Loads a loadable icon. For the asynchronous version of this function, see
Gio.LoadableIcon.load_async().- size (
-
load_async(size, cancellable, callback, *user_data)[source]¶ Parameters: - size (
int) – an integer. - cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignore. - callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied - user_data (
objectorNone) – the data to pass to callback function
Loads an icon asynchronously. To finish this function, see
Gio.LoadableIcon.load_finish(). For the synchronous, blocking version of this function, seeGio.LoadableIcon.load().- size (
-
load_finish(res)[source]¶ Parameters: res ( Gio.AsyncResult) – aGio.AsyncResult.Raises: GLib.ErrorReturns: a Gio.InputStreamto read the icon from.type: a location to store the type of the loaded icon, Noneto ignore.Return type: ( Gio.InputStream, type:str)Finishes an asynchronous icon load started in
Gio.LoadableIcon.load_async().
-
do_load(size, cancellable) virtual¶ Parameters: - size (
int) – an integer. - cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignore.
Returns: a
Gio.InputStreamto read the icon from.type: a location to store the type of the loaded icon, Noneto ignore.Return type: (
Gio.InputStream, type:str)Loads a loadable icon. For the asynchronous version of this function, see
Gio.LoadableIcon.load_async().- size (
-
do_load_async(size, cancellable, callback, *user_data) virtual¶ Parameters: - size (
int) – an integer. - cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignore. - callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied - user_data (
objectorNone) – the data to pass to callback function
Loads an icon asynchronously. To finish this function, see
Gio.LoadableIcon.load_finish(). For the synchronous, blocking version of this function, seeGio.LoadableIcon.load().- size (
-
do_load_finish(res) virtual¶ Parameters: res ( Gio.AsyncResult) – aGio.AsyncResult.Returns: a Gio.InputStreamto read the icon from.type: a location to store the type of the loaded icon, Noneto ignore.Return type: ( Gio.InputStream, type:str)Finishes an asynchronous icon load started in
Gio.LoadableIcon.load_async().
-