AsyncImage
Description:
Creates a new Granite.AsyncImage that displays a requested icon or file to display asynchronously.
The load_on_realize
boolean parameter specifies if the requested image should load when it's about to render and show. This is
useful when you don't want to have the image data loaded into memory immediately after calling
Granite.AsyncImage.set_from_gicon_async. Internally this
parameter causes the Granite.AsyncImage to connect to the
Gtk.Widget.realize signal.
auto_size_request
boolean parameter specifies if AsyncImage should allocate initial space when loading the image. This is useful
when the image is not yet loaded and the widget should act as a placeholder until the image is loaded. Calling any of the set_from
methods will call the Gtk.Widget.set_size_request with the passed
size
or width
and height
if you called
Granite.AsyncImage.set_from_file_async. When image is loaded
and shown the size request is then reset to the original values.
Parameters:
load_on_realize |
if |
auto_size_request |
if the widget should act as a placeholder when the image is not yet loaded |