Gio.LoadableIcon¶
- Implementations:
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gio.LoadableIcon¶
- Bases:
- Structure:
GLoadableIcon
extends 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.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
a
Gio.InputStream
to read the icon from.- type:
a location to store the type of the loaded icon,
None
to 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.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the request is satisfieduser_data (
object
orNone
) – 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.InputStream
to read the icon from.- type:
a location to store the type of the loaded icon,
None
to 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.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Returns:
a
Gio.InputStream
to read the icon from.- type:
a location to store the type of the loaded icon,
None
to 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.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the request is satisfieduser_data (
object
orNone
) – 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.InputStream
to read the icon from.- type:
a location to store the type of the loaded icon,
None
to ignore.
- Return type:
(
Gio.InputStream
, type:str
)
Finishes an asynchronous icon load started in
Gio.LoadableIcon.load_async
().