render_check

function render_check(context:Gtk.StyleContext, cr:cairo.Context, x:Number, y:Number, width:Number, height:Number):void {
    // Gjs wrapper for gtk_render_check()
}

Renders a checkmark (as in a Gtk.CheckButton).

The Gtk.StateFlags.active state determines whether the check is on or off, and Gtk.StateFlags.inconsistent determines whether it should be marked as undefined.

<example> <title>Typical checkmark rendering</title> <inlinegraphic fileref="checks.png" format="PNG"/> </example>

Since 3.0

context

a Gtk.StyleContext

cr

a #cairo_t

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height