renderIcon

fun renderIcon(context: StyleContext, cr: <Error class: unknown class>, texture: <Error class: unknown class>, x: <Error class: unknown class>, y: <Error class: unknown class>)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.10.

---

Renders the icon in @texture at the specified @x and @y coordinates.

This function will render the icon in @texture at exactly its size, regardless of scaling factors, which may not be appropriate when drawing on displays with high pixel densities.

Parameters

context

a GtkStyleContext

cr

a cairo_t

texture

a GdkTexture containing the icon to draw

x

X position for the @texture

y

Y position for the @texture