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

iconthe [gio.icon.Icon] to look up
sizedesired icon size
scalethe desired scale
directiontext direction the icon will be displayed in
flagsflags modifying the behavior of the icon lookup

Returns

a [gtk.icon_paintable.IconPaintable] containing

information about the icon. Unref with [gobject.object.ObjectWrap.unref]