|  |  |  | Goffice Reference Manual |  | 
|---|---|---|---|---|
#define GO_DATA_TYPE #define GO_DATA (o) #define IS_GO_DATA (o) GType go_data_get_type (void); GOData* go_data_dup (GOData const *src); gboolean go_data_eq (GOData const *a, GOData const *b); GOFormat* go_data_preferred_fmt (GOData const *dat); char* go_data_as_str (GOData const *dat); gboolean go_data_from_str (GOData *dat, char const *str); void go_data_emit_changed (GOData *dat); #define GO_DATA_SCALAR_TYPE #define GO_DATA_SCALAR (o) #define IS_GO_DATA_SCALAR (o) GType go_data_scalar_get_type (void); double go_data_scalar_get_value (GODataScalar *val); charconst * go_data_scalar_get_str (GODataScalar *val); #define GO_DATA_VECTOR_TYPE #define GO_DATA_VECTOR (o) #define IS_GO_DATA_VECTOR (o) GType go_data_vector_get_type (void); int go_data_vector_get_len (GODataVector *vec); double* go_data_vector_get_values (GODataVector *vec); double go_data_vector_get_value (GODataVector *vec, unsigned i); char* go_data_vector_get_str (GODataVector *vec, unsigned i); void go_data_vector_get_minmax (GODataVector *vec, double *min, double *max); gboolean go_data_vector_increasing (GODataVector *vec); gboolean go_data_vector_decreasing (GODataVector *vec); gboolean go_data_vector_vary_uniformly (GODataVector *vec); #define GO_DATA_MATRIX_TYPE #define GO_DATA_MATRIX (o) #define IS_GO_DATA_MATRIX (o) GType go_data_matrix_get_type (void); GODataMatrixSize go_data_matrix_get_size (GODataMatrix *mat); double* go_data_matrix_get_values (GODataMatrix *mat); double go_data_matrix_get_value (GODataMatrix *mat, unsigned i, unsigned j); char* go_data_matrix_get_str (GODataMatrix *mat, unsigned i, unsigned j); void go_data_matrix_get_minmax (GODataMatrix *mat, double *min, double *max);
gboolean            go_data_eq                          (GOData const *a,
                                                         GOData const *b);
| 
 | GOData | 
| 
 | GOData | 
| Returns : | TRUE if aandbare the same | 
GOFormat* go_data_preferred_fmt (GOData const *dat);
Caller is responsible for unrefing the result.
| 
 | GOData | 
| Returns : | the fmt preferred by the the data | 
char* go_data_as_str (GOData const *dat);
NOTE : This is the _source_ not the content.
| 
 | GOData | 
| Returns : | a string representation of the data source that the caller is responsible for freeing | 
gboolean            go_data_from_str                    (GOData *dat,
                                                         char const *str);
De-serializes the source information returned from go_data_as_str.
| 
 | GOData | 
| 
 | string to parse | 
| Returns : | FALSEon error. | 
void go_data_emit_changed (GOData *dat);
protected utility to emit a 'changed' signal
| 
 | GOData | 
#define GO_DATA_SCALAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_DATA_SCALAR_TYPE, GODataScalar))
| 
 | 
#define IS_GO_DATA_SCALAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_DATA_SCALAR_TYPE))
| 
 | 
#define GO_DATA_VECTOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_DATA_VECTOR_TYPE, GODataVector))
| 
 | 
#define IS_GO_DATA_VECTOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_DATA_VECTOR_TYPE))
| 
 | 
double go_data_vector_get_value (GODataVector *vec, unsigned i);
| 
 | |
| 
 | |
| Returns : | 
char* go_data_vector_get_str (GODataVector *vec, unsigned i);
| 
 | |
| 
 | |
| Returns : | 
void go_data_vector_get_minmax (GODataVector *vec, double *min, double *max);
| 
 | |
| 
 | |
| 
 | 
gboolean go_data_vector_increasing (GODataVector *vec);
| 
 | |
| Returns : | 
gboolean go_data_vector_decreasing (GODataVector *vec);
| 
 | |
| Returns : | 
gboolean go_data_vector_vary_uniformly (GODataVector *vec);
| 
 | |
| Returns : | 
#define GO_DATA_MATRIX(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_DATA_MATRIX_TYPE, GODataMatrix))
| 
 | 
#define IS_GO_DATA_MATRIX(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_DATA_MATRIX_TYPE))
| 
 | 
GODataMatrixSize go_data_matrix_get_size (GODataMatrix *mat);
| 
 | |
| Returns : | 
double go_data_matrix_get_value (GODataMatrix *mat, unsigned i, unsigned j);
| 
 | |
| 
 | |
| 
 | |
| Returns : | 
char* go_data_matrix_get_str (GODataMatrix *mat, unsigned i, unsigned j);
| 
 | |
| 
 | |
| 
 | |
| Returns : | 
void go_data_matrix_get_minmax (GODataMatrix *mat, double *min, double *max);
| 
 | |
| 
 | |
| 
 |