![]() |
![]() |
![]() |
GNOME Canvas Library Reference Manual | ![]() |
---|---|---|---|---|
#include <libgnomecanvas/libgnomecanvas.h> GnomeCanvasLine;
GObject +----GInitiallyUnowned +----GtkObject +----GnomeCanvasItem +----GnomeCanvasLine
"arrow-shape-a" gdouble : Read / Write "arrow-shape-b" gdouble : Read / Write "arrow-shape-c" gdouble : Read / Write "cap-style" GdkCapStyle : Read / Write "fill-color" gchararray : Read / Write "fill-color-gdk" GdkColor : Read / Write "fill-color-rgba" guint : Read / Write "fill-stipple" GdkDrawable : Read / Write "first-arrowhead" gboolean : Read / Write "join-style" GdkJoinStyle : Read / Write "last-arrowhead" gboolean : Read / Write "line-style" GdkLineStyle : Read / Write "points" GnomeCanvasPoints : Read / Write "smooth" gboolean : Read / Write "spline-steps" guint : Read / Write "width-pixels" guint : Read / Write "width-units" gdouble : Read / Write
A canvas item for drawing lines. This canvas item uses a GnomeCanvasPoints structure so one or multiple joined lined segments can be drawn with a single GnomeCanvasLine item.
arrow-shape-a
" property"arrow-shape-a" gdouble : Read / Write
Distance from tip of arrowhead to center.
Default value: 0
arrow-shape-b
" property"arrow-shape-b" gdouble : Read / Write
Distance from tip of arrowhead to trailing point, measured along shaft.
Default value: 0
arrow-shape-c
" property"arrow-shape-c" gdouble : Read / Write
Distance of arrowhead trailing points from outside edge of shaft.
Default value: 0
cap-style
" property"cap-style" GdkCapStyle : Read / Write
Determines how the ends of lines are drawn (the line cap style).
Default value: GDK_CAP_BUTT
fill-color
" property"fill-color" gchararray : Read / Write
X color specification for line.
Default value: NULL
fill-color-gdk
" property"fill-color-gdk" GdkColor : Read / Write
Pointer to an allocated GdkColor to draw the line with.
fill-color-rgba
" property"fill-color-rgba" guint : Read / Write
Line color with an alpha component (in the format 0xRRGGBBAA).
Default value: 0
first-arrowhead
" property"first-arrowhead" gboolean : Read / Write
Specifies whether to draw an arrowhead on the first point of the line.
Default value: FALSE
join-style
" property"join-style" GdkJoinStyle : Read / Write
Vertex join style for line segments (GDK_JOIN_MITER to join by extending each line to meet at an angle, GDK_JOIN_ROUND to join by a circular arc, and GDK_JOIN_BEVEL to join by a straight line which makes an equal angle with each line).
Default value: GDK_JOIN_MITER
last-arrowhead
" property"last-arrowhead" gboolean : Read / Write
Specifies whether to draw an arrowhead on the last point of the line.
Default value: FALSE
line-style
" property"line-style" GdkLineStyle : Read / Write
Line dash style.
Default value: GDK_LINE_SOLID
points
" property"points" GnomeCanvasPoints : Read / Write
Pointer to a GnomeCanvasPoints structure. This can be created by a
call to gnome_canvas_points_new()
.
smooth
" property"smooth" gboolean : Read / Write
Specifies whether to smooth the line using parabolic splines.
Default value: FALSE
spline-steps
" property"spline-steps" guint : Read / Write
Specifies the number of steps to use when rendering curves.
Default value: 12
width-pixels
" property"width-pixels" guint : Read / Write
Width of the line in pixels. The line width will not be scaled when the canvas zoom factor changes.
Default value: 0