Declaration [src]

gtk_icon_theme_lookup_by_gicon (
  GtkIconTheme* self,
  GIcon* icon,
  int size,
  int scale,
  GtkTextDirection direction,
  GtkIconLookupFlags flags

Description [src]

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.


icon GIcon

The GIcon to look up.

 The data is owned by the caller of the function.
size int

Desired icon size.

scale int

The desired scale.

direction GtkTextDirection

Text direction the icon will be displayed in.

flags GtkIconLookupFlags

Flags modifying the behavior of the icon lookup.

Return value

Returns: GtkIconPaintable

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

 The caller of the method takes ownership of the data, and is responsible for freeing it.