Gio.LoadableIcon¶
interface
GLoadableIcon extends the Icon interface and adds the ability
to load icons from streams.
Methods¶
load¶
Loads a loadable icon. For the asynchronous version of this function,
see LoadableIcon.load_async.
Parameters:
size— an integer.cancellable— optionalCancellableobject,Noneto ignore.
load_async¶
def load_async(self, size: int, cancellable: Cancellable | None = ..., callback: Callable[[LoadableIcon | None, AsyncResult], None] | None = ...) -> None
Loads an icon asynchronously. To finish this function, see
LoadableIcon.load_finish. For the synchronous, blocking
version of this function, see LoadableIcon.load.
Parameters:
size— an integer.cancellable— optionalCancellableobject,Noneto ignore.callback— aGAsyncReadyCallbackto call when the request is satisfied
load_finish¶
Finishes an asynchronous icon load started in LoadableIcon.load_async.
Parameters:
res— aAsyncResult.
Virtual methods¶
do_load¶
Loads a loadable icon. For the asynchronous version of this function,
see LoadableIcon.load_async.
Parameters:
size— an integer.cancellable— optionalCancellableobject,Noneto ignore.
do_load_async¶
def do_load_async(self, size: int, cancellable: Cancellable | None = ..., callback: Callable[[LoadableIcon | None, AsyncResult], None] | None = ...) -> None
Loads an icon asynchronously. To finish this function, see
LoadableIcon.load_finish. For the synchronous, blocking
version of this function, see LoadableIcon.load.
Parameters:
size— an integer.cancellable— optionalCancellableobject,Noneto ignore.callback— aGAsyncReadyCallbackto call when the request is satisfied
do_load_finish¶
Finishes an asynchronous icon load started in LoadableIcon.load_async.
Parameters:
res— aAsyncResult.