Function gtk4::render_line[][src]

pub fn render_line(
    context: &impl IsA<StyleContext>,
    cr: &Context,
    x0: f64,
    y0: f64,
    x1: f64,
    y1: f64
)
Expand description

Renders a line from (x0, y0) to (x1, y1).

context

a StyleContext

cr

a cairo_t

x0

X coordinate for the origin of the line

y0

Y coordinate for the origin of the line

x1

X coordinate for the end of the line

y1

Y coordinate for the end of the line