Function gtk4::functions::render_check[][src]

pub fn render_check<P: IsA<StyleContext>>(
    context: &P,
    cr: &Context,
    x: f64,
    y: f64,
    width: f64,
    height: f64
)
Expand description

Renders a checkmark (as in a CheckButton).

The StateFlags::CHECKED state determines whether the check is on or off, and StateFlags::INCONSISTENT determines whether it should be marked as undefined.

Typical checkmark rendering:

context

a StyleContext

cr

a cairo_t

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height