GooPolax

GooPolax — an axis and a background area to scale values

Synopsis

struct              GooPolax;
struct              GooPolaxClass;
GooCanvasItem *     goo_polax_new                       (GooCanvasItem *Parent,
                                                         GooType X,
                                                         GooType Y,
                                                         GooType Width_,
                                                         GooType Height,
                                                         gchar *Text,
                                                         ...);

Object Hierarchy

  GObject
   +----GooCanvasItemSimple
         +----GooCanvasGroup
               +----GooPolax

Implemented Interfaces

GooPolax implements GooCanvasItem.

Properties

  "segmented"                gchar                 : Read / Write

Description

GooPolax is a subclass of GooCanvasGroup and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width". It also inherits the GooCanvasItem interface, so you can use the GooCanvasItem functions such as goo_canvas_item_raise() and goo_canvas_item_rotate().

To create a GooPolax use goo_polax_new().

...

Details

struct GooPolax

struct GooPolax;

The GooPolax struct contains private data only.


struct GooPolaxClass

struct GooPolaxClass;

The GooPolaxClass struct contains private data only.


goo_polax_new ()

GooCanvasItem *     goo_polax_new                       (GooCanvasItem *Parent,
                                                         GooType X,
                                                         GooType Y,
                                                         GooType Width_,
                                                         GooType Height,
                                                         gchar *Text,
                                                         ...);

Creates a new simple curve item.

The simple curve does support points scaled by one or two axis. If you need smooth lines, markers, error-markers, areas, perpendiculars or vectors, have a look at GooCurve2d.

To draw points only (and omit the lines between the points) a line dash has to be set. It have to have exact two entries, the first is 0.0 and the second is greater than the sum of both axis length (the height + width of the background box). Use CAIRO_LINE_CAP_ROUND or CAIRO_LINE_CAP_SQUARE with property "line-cap" to draw rounded or squared points.

Parent :

the parent item, or NULL. If a parent is specified, it will assume ownership of the item, and the item will automatically be freed when it is removed from the parent. Otherwise call g_object_unref() to free it.

X :

the x coordinate of the left top corner of the area for the pie chart.

Y :

the y coordinate of the left top corner of the area for the pie chart

Width_ :

the width of the area for the pie chart

Height :

the height of the area for the pie chart

Text :

the label text for the axis. You can use Pango markup language to format the text.

... :

optional pairs of property names and values, and a terminating NULL.

Returns :

a new Polax item. [transfer full]

Since 0.0

Property Details

The "segmented" property

  "segmented"                gchar                 : Read / Write

The segment where to place the polar axis in.

Default value: NULL