| Goffice Reference Manual | ||||
|---|---|---|---|---|
GOLineDashSequence;
GOLineDashType go_line_dash_from_str (char const *name);
charconst * go_line_dash_as_str (GOLineDashType type);
charconst * go_line_dash_as_label (GOLineDashType type);
double go_line_dash_get_length (GOLineDashType type);
GOLineDashSequence* go_line_dash_get_sequence (GOLineDashType type,
double scale);
void go_line_dash_sequence_free (GOLineDashSequence *sequence);
GOLineInterpolation go_line_interpolation_from_str (char const *name);
charconst * go_line_interpolation_as_str (GOLineInterpolation type);
charconst * go_line_interpolation_as_label (GOLineInterpolation type);
gboolean go_line_interpolation_supports_radial
(GOLineInterpolation type);
gboolean go_line_interpolation_auto_skip (GOLineInterpolation type);
typedef struct {
double offset;
unsigned int n_dash;
double *dash;
} GOLineDashSequence;
GOLineDashType go_line_dash_from_str (char const *name);
|
Name of the dash type |
Returns : |
a GOLineDashType corresponding to name, or GO_LINE_NONE
if not found.
|
charconst * go_line_dash_as_str (GOLineDashType type);
|
a GOLineDashType |
Returns : |
a pointer to the nickname of the dash type, or "none" if type is invalid. The returning string should not be freed. |
charconst * go_line_dash_as_label (GOLineDashType type);
|
a GOLineDashType |
Returns : |
a pointer to the user readable name of the dash type,
or the name of GO_LINE_NONE if type is invalid. The returned
string should not be freed.
|
double go_line_dash_get_length (GOLineDashType type);
|
GOLineDashType |
Returns : |
the unscaled length of the dash sequence. |
GOLineDashSequence* go_line_dash_get_sequence (GOLineDashType type, double scale);
|
a GOLineDashType |
|
dash scale |
Returns : |
a struct containing the dash sequence corresponding to type,
or NULL if type is invalid or equal to GO_LINE_NONE.
The lengths are scaled according to scale.
|
void go_line_dash_sequence_free (GOLineDashSequence *sequence);
Frees the dash sequence struct.
|
a GOLineDashSequence |
GOLineInterpolation go_line_interpolation_from_str (char const *name);
|
an interpolation type nickname |
Returns : |
a GOLineInterpolation corresponding to name, or
GO_LINE_INTERPOLATION_LINEAR if not found.
|
charconst * go_line_interpolation_as_str (GOLineInterpolation type);
|
an interpolation type |
Returns : |
TRUE if the line interpolation type forces skipping invalid data, FALSE if it is only optional. |
charconst * go_line_interpolation_as_label (GOLineInterpolation type);
|
an interpolation type |
Returns : |
a pointer to the label of type, or the name of
GO_LINE_INTERPOLATION_LINEAR if type is invalid.
The returned string should not be freed.
|
gboolean go_line_interpolation_supports_radial
(GOLineInterpolation type);
|
|
Returns : |