AsyncImage.from_gicon_async


Description:

public AsyncImage.from_gicon_async (Icon icon, int size, bool load_on_realize = true, bool auto_size_request = true)

Creates a new Granite.AsyncImage with the supplied icon and size. See Granite.AsyncImage.AsyncImage for more details.

This is equivalent to calling Granite.AsyncImage.AsyncImage and Granite.AsyncImage.set_from_gicon_async.

Parameters:

icon

the GLib.Icon to display in the image

size

the size of the icon, -1 to load the default size

load_on_realize

if true the image will be loaded when it's rendered, false to load the image immediately

auto_size_request

if the widget should act as a placeholder when the image is not yet loaded