Package: gtk

Function gtk:render-icon

Lambda List

gtk:render-icon (context cr texture x y)

Arguments

context -- a gtk:style-context object
cr -- a cairo:context-t context
texture -- a gdk:texture object containing the icon to draw
x -- a number, coerced to a double float, with the x position for the texture
y -- a number, coerced to a double float, with the y position for the texture

Details

Renders the icon in a 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.

Warning

This function is deprecated since 4.10. Please do not use it in newly written code.
 

See also

#2023-9-17