CrLine

CrLine — A polygon or polyline canvas item.

Synopsis

                    CrLine;
CrItem*             cr_line_new                         (CrItem *parent,
                                                         const gchar *first_arg_name,
                                                         ...);

Object Hierarchy

  GObject
   +----CrItem
         +----CrPath
               +----CrLine

Properties

  "array"                    gpointer              : Write
  "close"                    gboolean              : Read / Write
  "points"                   CrPoints*             : Read / Write

Description

This canvas item can render polygons or polylines.

Details

CrLine

typedef struct _CrLine CrLine;


cr_line_new ()

CrItem*             cr_line_new                         (CrItem *parent,
                                                         const gchar *first_arg_name,
                                                         ...);

A convenience function to create a polyline and add it to a canvas item parent group in one step.

parent :

The parent canvas item.

first_arg_name :

... :

Returns :

A reference to a new CrItem. You must call g_object_ref if you intend to keep it around.

Property Details

The "array" property

  "array"                    gpointer              : Write

an array of doubleprecision x,y values. item takes ownership.


The "close" property

  "close"                    gboolean              : Read / Write

True, if it is a polygon.

Default value: TRUE


The "points" property

  "points"                   CrPoints*             : Read / Write

a boxed array of double precision x,y values.