lookupByGicon

open fun lookupByGicon(icon: <Error class: unknown class>, size: <Error class: unknown class>, scale: <Error class: unknown class>, direction: TextDirection, flags: IconLookupFlags): IconPaintable

Looks up a icon for a desired size and window scale.

The icon can then be rendered by using it as a GdkPaintable, or you can get information such as the filename and size.

Return

a GtkIconPaintable containing information about the icon. Unref with g_object_unref()

Parameters

icon

the GIcon to look up

size

desired icon size, in application pixels

scale

the desired scale

direction

text direction the icon will be displayed in

flags

flags modifying the behavior of the icon lookup