Function

Gtkrender_line

Declaration [src]

void
gtk_render_line (
  GtkStyleContext* context,
  cairo_t* cr,
  gdouble x0,
  gdouble y0,
  gdouble x1,
  gdouble y1
)

Description [src]

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

Available since:3.0

Parameters

context GtkStyleContext
 

A GtkStyleContext.

 The data is owned by the caller of the function.
cr cairo_t
 

A #cairo_t.

 The data is owned by the caller of the function.
x0 gdouble
 

X coordinate for the origin of the line.

y0 gdouble
 

Y coordinate for the origin of the line.

x1 gdouble
 

X coordinate for the end of the line.

y1 gdouble
 

Y coordinate for the end of the line.