GooData Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
enum GooDataMarkers;void goo_palette_set_function (goo_palette_function Func
);guint (*goo_palette_function) (,
gdouble Scale); unsigned
char Alpha_char goo_set_decimal_separator (); struct GooDataPoints; GooDataPoints * goo_data_points_new (
UByte V,
guint Rows,
guint Columns); GooDataPoints * goo_data_points_ref (
GooType *ArrayGooDataPoints *Points
);void goo_data_points_unref (GooDataPoints *Points
);void goo_data_points_set_point (GooDataPoints *Points
,,
guint Row,
guint Column);
GooType ValueGooType goo_data_points_get_point (GooDataPoints *Points
,,
guint Row); struct GooFillerValue; struct GooFiller; GooFiller * goo_filler_new (
guint Column); GooFiller * goo_filler_ref (
guint EntriesGooFiller *Filler
);void goo_filler_unref (GooFiller *Filler
);gboolean goo_filler_set (GooFiller *Filler
,,
guint Index,
gchar *Prop);
gpointer Value
typedef enum { GOO_MARKER_NONE, GOO_MARKER_CIRCLE, GOO_MARKER_CROSS, GOO_MARKER_CROSS2, GOO_MARKER_TRIANGLE, GOO_MARKER_TRIANGLE2, GOO_MARKER_RHOMBUS, GOO_MARKER_RHOMBUS2, GOO_MARKER_RHOMBUS3, GOO_MARKER_SQUARE, GOO_MARKER_FLOWER1, GOO_MARKER_FLOWER2, } GooDataMarkers;
Enum values used for
no markers for the curve | |
a filled circle | |
a cross like an 'X' | |
a cross like a 't' | |
an equilateral triangle, tip up | |
an equilateral triangle, tip down | |
a rhombus | |
two rhombus in up / down direction | |
two rhombus in left / right direction | |
a square | |
four half-circles in up / down direction | |
four half-circles rotated by 45 degrees |
void goo_palette_set_function (goo_palette_function Func
);
Sets the goo_palette_function()
for color gradients. Pass NULL
goo_palette_function()
.
|
A function that returns a color value for a rgba property
(ie for |
Since 0.0
guint (*goo_palette_function) (,
gdouble Scale);
char Alpha_
A goo_palette_function()
should return a color value to be used in
color gradients (ie for high maps).
The standard goo_pallete_function()
|
the scale of the color in the integval [0,1]. Values outside this interval gets fitted to the next border. |
|
optional alpha value, if the color should be translucent (default = 0xff). |
Returns : |
a color value for a rgba property (ie |
Since 0.0
unsignedchar goo_set_decimal_separator ();
UByte V
Sets the decimal separator character. This can be either a '.' or a ',' character. To use the current locale setting call this function with empty parameter list or 0 (null) as parameter.
|
the new value for the decimal separator. |
Returns : |
the new decimal separator setting. |
Since 0.0
struct GooDataPoints;
GooDataPoints represents an array of numerical values as the source for all the graph types. It contains private data only. Use the functions of the goo_data_points family to set the content.
The data array may contain more data (more columns) than used in a graph, so one structs can be used for multiple graphs.
Since 0.0
GooDataPoints * goo_data_points_new (,
guint Rows,
guint Columns);
GooType *Array
Creates a new GooDataPoints struct. The structure can either allocate space for the given number of values or can hold an previously created array of GooType values.
In the second case the memory must not be freed while the GooDataPoints struct is in usage (its reference counter is greater than zero) and when the calling code has to free it after the GooDataPoints struct memory gets freed.
In the first case the memory gets handled by the functions of the
goo_data_points family and the content (values) can be manipulated by
goo_data_points_set_point()
and goo_data_points_get_point()
.
Free the memory by calling goo_data_points_unref()
when done.
|
the number of rows to create in the array. |
|
the number of columns to create in the array or nothing to create one column. |
|
an (optional) array with the given number of rows and columns
of GooType values or NULL |
Returns : |
a new GooDataPoints struct. [transfer full] |
Since 0.0
GooDataPoints * goo_data_points_ref (GooDataPoints *Points
);
Increments the reference count of the given GooDataPoints struct.
|
a GooDataPoints struct. |
Returns : |
the GooDataPoints struct. |
Since 0.0
void goo_data_points_unref (GooDataPoints *Points
);
Decrements the reference count of the given GooDataPoints struct, freeing it if the reference count falls to zero.
|
a GooDataPoints struct. |
Since 0.0
void goo_data_points_set_point (GooDataPoints *Points
,,
guint Row,
guint Column);
GooType Value
Set a value in the GooDataPoints struct.
|
a GooDataPoints struct. |
|
the row of the value to set. |
|
the column of the value to set. |
|
the value to set at row and column. |
Since 0.0
GooType goo_data_points_get_point (GooDataPoints *Points
,,
guint Row);
guint Column
Get a value from the GooDataPoints struct.
|
a GooDataPoints struct. |
|
the row of the value to get. |
|
the column of the value to get. |
Returns : |
the value to get from row and column. |
Since 0.0
struct GooFillerValue;
This struct represents a set of a
Since 0.0
struct GooFiller;
This struct is used to set the
Since 0.0
GooFiller * goo_filler_new (guint Entries
);
Creates a new GooFiller struct to be used in properties like
"filler" or "filler". The entries gets initialized by
the default filler methods. Use goo_filler_set()
to override an entry.
Free the memory by goo_filler_unref()
when done.
|
the number of entries in the GooFiller. |
Returns : |
a new GooFiller structure. [transfer full] |
Since 0.0
GooFiller * goo_filler_ref (GooFiller *Filler
);
Increments the reference count of the given GooFiller structure.
Since 0.0
void goo_filler_unref (GooFiller *Filler
);
Decrements the reference count of the given GooFiller structure, freeing it if the reference count falls to zero.
|
a GooFiller structure. |
Since 0.0
gboolean goo_filler_set (GooFiller *Filler
,,
guint Index,
gchar *Prop);
gpointer Value
Set one GooFiller property and value. All fill properties of
|
a GooFiller structure. |
|
the position where to set the new property. |
|
a property name for a |
|
the value for the filling method. |
Returns : |
TRUE FALSE |
Since 0.0