information about the icon. Unref with [gobject.object.ObjectWrap.unref]
IconTheme.lookupByGicon
gtk.icon_paintable.IconPaintable lookupByGicon(gio.icon.Icon icon, int size, int scale, gtk.types.TextDirection direction, gtk.types.IconLookupFlags flags)Looks up a icon for a desired size and window scale.
The icon can then be rendered by using it as a [gdk.paintable.Paintable], or you can get information such as the filename and size.
Parameters
icon | the [gio.icon.Icon] to look up |
size | desired icon size |
scale | the desired scale |
direction | text direction the icon will be displayed in |
flags | flags modifying the behavior of the icon lookup |
Returns
a [gtk.icon_paintable.IconPaintable] containing