DiaCanvasLine

DiaCanvasLine — Line object.

Synopsis




#define     DIA_CANVAS_LINE                 (obj)
struct      DiaCanvasLine;

Object Hierarchy


  GObject
   +----DiaCanvasItem
         +----DiaCanvasLine

Properties


  "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

Description

This object is a multi functional line object (a bit line GnomeCanvasLine).

Figure 1. A line

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

Arrow head

Details

DIA_CANVAS_LINE()

#define DIA_CANVAS_LINE(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_LINE, DiaCanvasLine))

obj :

struct DiaCanvasLine

struct DiaCanvasLine;

Properties

"add-point" (DiaPoint : Write)

Add a point to the end of the line.

"add-segment" (guint : Write)

Add a segment by splitting the given segment into two.

"cap" (DiaCapStyle : Read / Write)

Style for the line-end.

"color" (gulong : Read / Write)

Color of the line, as RGBA.

"cyclic" (gboolean : Read / Write)

Line is cyclic, a polygon.

"dash" (DiaDashStyle : Read / Write)

Set dash style for the line.

"del-segment" (guint : Write)

Delete line segment.

"has-head" (gboolean : Read / Write)

Turn arrow on the head on and off.

"has-tail" (gboolean : Read / Write)

The line should have an arrow on the end of the line. The arrow is descripbed by 'tail_[abcd]'.

"head-a" (gdouble : Read / Write)

"head-b" (gdouble : Read / Write)

"head-c" (gdouble : Read / Write)

"head-color" (gulong : Read / Write)

Color of the head arrow in RGBA.

"head-d" (gdouble : Read / Write)

"head-fill-color" (gulong : Read / Write)

Color of the line in RGBA.

"head-pos" (DiaPoint : Read / Write)

"horizontal" (gboolean : Read / Write)

The first segmen of the orthogonal line should be horizontal.

"join" (DiaJoinStyle : Read / Write)

Style of the line's corners.

"line-width" (gdouble : Read / Write)

Width of the line.

"orthogonal" (gboolean : Read / Write)

Set if the line should be an orthogonal line or not.

"tail-a" (gdouble : Read / Write)

"tail-b" (gdouble : Read / Write)

"tail-c" (gdouble : Read / Write)

"tail-color" (gulong : Read / Write)

Color of the end arrow in RGBA.

"tail-d" (gdouble : Read / Write)

"tail-fill-color" (gulong : Read / Write)

Color of the line in RGBA.

"tail-pos" (DiaPoint : Read / Write)