![]() | ![]() | ![]() | DiaCanvas2 Reference Manual | ![]() |
---|
DiaCanvasLineDiaCanvasLine — Line object. |
#define DIA_CANVAS_LINE (obj) DiaCanvasLine;
"add-point" DiaPoint : Write "add-segment" guint : Write "cap" DiaCapStyle : Read / Write "color" gulong : Read / Write "cyclic" gboolean : Read / Write "dash" DiaDashStyle : Read / Write "del-segment" guint : Write "has-head" gboolean : Read / Write "has-tail" gboolean : Read / Write "head-a" gdouble : Read / Write "head-b" gdouble : Read / Write "head-c" gdouble : Read / Write "head-color" gulong : Read / Write "head-d" gdouble : Read / Write "head-fill-color" gulong : Read / Write "head-pos" DiaPoint : Read / Write "horizontal" gboolean : Read / Write "join" DiaJoinStyle : Read / Write "line-width" gdouble : Read / Write "orthogonal" gboolean : Read / Write "tail-a" gdouble : Read / Write "tail-b" gdouble : Read / Write "tail-c" gdouble : Read / Write "tail-color" gulong : Read / Write "tail-d" gdouble : Read / Write "tail-fill-color" gulong : Read / Write "tail-pos" DiaPoint : Read / Write
This object is a multi functional line object (a bit line GnomeCanvasLine).
This line can also have a arrow head (or tail). The head is defined by four properties: head_a, head_b, head_c and head_d, as explained in the image below.
#define DIA_CANVAS_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_LINE, DiaCanvasLine))
obj : |
"add-segment" guint : Write
Add a segment by splitting the given segment into two.
Default value: 0
"cap" DiaCapStyle : Read / Write
Style for the line-end.
Default value: DIA_CAP_BUTT
"cyclic" gboolean : Read / Write
Line is cyclic, a polygon.
Default value: FALSE
"has-head" gboolean : Read / Write
Turn arrow on the head on and off.
Default value: FALSE
"has-tail" gboolean : Read / Write
The line should have an arrow on the end of the line. The arrow is descripbed by 'tail_[abcd]'.
Default value: FALSE
"horizontal" gboolean : Read / Write
The first segmen of the orthogonal line should be horizontal.
Default value: FALSE
"join" DiaJoinStyle : Read / Write
Style of the line's corners.
Default value: DIA_JOIN_MITER
"line-width" gdouble : Read / Write
Width of the line.
Allowed values: >= 0
Default value: 1
"orthogonal" gboolean : Read / Write
Set if the line should be an orthogonal line or not.
Default value: FALSE
<< Standard objects | DiaCanvasElement >> |