gtk4

Function render_line

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

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

§Deprecated since 4.10

§context

a StyleContext

§cr

a cairo::Context

§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