The OpenD Programming Language

cairo_bool_t

cairo_bool_t is used for boolean values. Returns of type cairo_bool_t will always be either 0 or 1, but testing against these values explicitly is not encouraged; just use the value as a boolean condition.

import cairo.c.cairo;
extern (C)
alias cairo_bool_t = int

Examples

if (cairo_in_stroke (cr, x, y)) {
    //do something
}

Meta