IconPaintable.for_file


Description:

[ CCode ( has_construct_function = false ) ]
public IconPaintable.for_file (File file, int size, int scale)

Creates a `GtkIconPaintable` for a file with a given size and scale.

The icon can then be rendered by using it as a `GdkPaintable`.

Parameters:

file

a `GFile`

size

desired icon size

scale

the desired scale

Returns:

a `GtkIconPaintable` containing for the icon. Unref with unref




2022 vala-language.org