Package: gtk

Function gtk:render-background

Lambda List

gtk:render-background (context cr x y width height)

Arguments

context -- a gtk:style-context object
cr -- a cairo:context-t context
x -- a number, coerced to a double float, with the x origin of the render area
y -- a number, coerced to a double float, with the y origin of the render area
width -- a number, coerced to a double float, with the rectangle width
height -- a number, coerced to a double float, with the rectangle height

Details

Renders the background of an element.

Typical background rendering, showing the effect of background-image, border-width and border-radius:

Warning

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

See also

#2023-9-17