Gio.LoadableIcon¶
- Implementations:
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gio.LoadableIcon¶
- Bases:
- Structure:
GLoadableIconextends the [iface`Gio`.Icon] interface 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().
- 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 satisfieduser_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().
- load_finish(res)[source]¶
- Parameters:
res (
Gio.AsyncResult) – aGio.AsyncResult.- 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)
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().
- 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 satisfieduser_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().
- 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().