Package: gtk

Function gtk:render-option

Lambda List

gtk:render-option (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 floatf or the x origin of the rectangle
y -- a number coerced to a double float for the y origin of the rectangle
width -- a number coerced to a double float for the rectangle width
height -- a number coerced to a double float for the rectangle height

Details

Renders an option mark as in a gtk:check-button widget. The :checked state of the gtk:state-flags flags will determine whether the option is on or off, and the :inconsistent state whether it should be marked as undefined.

Typical option mark rendering:

Warning

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

See also

#2025-07-26