renderIcon
fn
void renderIcon(gtk.style_context.StyleContext context, cairo.context.Context cr, gdk.texture.Texture texture, double x, double y)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 [gtk.style_context.StyleContext] |
cr | a [cairo.context.Context] |
texture | a [gdk.texture.Texture] containing the icon to draw |
x | X position for the texture |
y | Y position for the texture |