![]() | ![]() | ![]() | DiaCanvas2 Reference Manual | ![]() |
---|
DiaCanvasLine — Line object.
#define DIA_CANVAS_LINE (obj) struct DiaCanvasLine;
GObject +----DiaCanvasItem +----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).
Figure 1. A line
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.
Figure 2. Arrow head
#define DIA_CANVAS_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_LINE, DiaCanvasLine))
obj : |
"add-point" (DiaPoint : Write) | Add a point to the end of the line. |
"add-segment" ( |
|
"cap" (DiaCapStyle : Read / Write) | Style for the line-end. |
"color" ( | Color of the line, as RGBA. |
"cyclic" ( |
|
"dash" (DiaDashStyle : Read / Write) | Set dash style for the line. |
"del-segment" ( | Delete line segment. |
"has-head" ( | Turn arrow on the head on and off. |
"has-tail" ( |
|
"head-a" ( |
|
"head-b" ( |
|
"head-c" ( |
|
"head-color" ( |
|
"head-d" ( |
|
"head-fill-color" ( |
|
"head-pos" (DiaPoint : Read / Write) |
|
"horizontal" ( | The first segmen of the orthogonal line should be horizontal. |
"join" (DiaJoinStyle : Read / Write) |
|
"line-width" ( |
|
"orthogonal" ( | Set if the line should be an orthogonal line or not. |
"tail-a" ( |
|
"tail-b" ( |
|
"tail-c" ( |
|
"tail-color" ( |
|
"tail-d" ( |
|
"tail-fill-color" ( |
|
"tail-pos" (DiaPoint : Read / Write) |
|
<< Standard objects | DiaCanvasElement >> |