go-line

go-line

Synopsis

                    GOLineDashSequence;
GOLineDashType      go_line_dash_from_str               (char const *name);
char const 		*      go_line_dash_as_str                 (GOLineDashType type);
char const 		*      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);
char const 		*      go_line_interpolation_as_str        (GOLineInterpolation type);
char const 		*      go_line_interpolation_as_label      (GOLineInterpolation type);
gboolean            go_line_interpolation_supports_radial
                                                        (GOLineInterpolation type);
gboolean            go_line_interpolation_auto_skip     (GOLineInterpolation type);
enum                GOArrowType;
                    GOArrow;
GType               go_arrow_get_type                   (void);
#define             GO_ARROW_TYPE
char const *        go_arrow_type_as_str                (GOArrowType typ);
GOArrowType         go_arrow_type_from_str              (const char *name);
GOArrow *           go_arrow_dup                        (GOArrow *src);
void                go_arrow_init                       (GOArrow *res,
                                                         GOArrowType typ,
                                                         double a,
                                                         double b,
                                                         double c);
void                go_arrow_clear                      (GOArrow *dst);
void                go_arrow_init_kite                  (GOArrow *dst,
                                                         double a,
                                                         double b,
                                                         double c);
void                go_arrow_init_oval                  (GOArrow *dst,
                                                         double ra,
                                                         double rb);

Description

Details

GOLineDashSequence

typedef struct {
	double		 offset;
	unsigned int	 n_dash;
	double		*dash;
} GOLineDashSequence;

double offset;

offset from start.

unsigned int n_dash;

number of values in dash fields

double *dash;

lengths of the dashes segments. See cairo_set_dash() for details.

go_line_dash_from_str ()

GOLineDashType      go_line_dash_from_str               (char const *name);

name :

Name of the dash type

Returns :

a GOLineDashType corresponding to name, or GO_LINE_NONE if not found.

go_line_dash_as_str ()

char const 		*      go_line_dash_as_str                 (GOLineDashType type);

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.

go_line_dash_as_label ()

char const 		*      go_line_dash_as_label               (GOLineDashType type);

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.

go_line_dash_get_length ()

double              go_line_dash_get_length             (GOLineDashType type);

type :

GOLineDashType

Returns :

the unscaled length of the dash sequence.

go_line_dash_get_sequence ()

GOLineDashSequence * go_line_dash_get_sequence          (GOLineDashType type,
                                                         double scale);

type :

a GOLineDashType

scale :

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.

go_line_dash_sequence_free ()

void                go_line_dash_sequence_free          (GOLineDashSequence *sequence);

Frees the dash sequence struct.

sequence :

a GOLineDashSequence

go_line_interpolation_from_str ()

GOLineInterpolation  go_line_interpolation_from_str     (char const *name);

name :

an interpolation type nickname

Returns :

a GOLineInterpolation corresponding to name, or GO_LINE_INTERPOLATION_LINEAR if not found.

go_line_interpolation_as_str ()

char const 		*      go_line_interpolation_as_str        (GOLineInterpolation type);

type :

an interpolation type

Returns :

TRUE if the line interpolation type forces skipping invalid data, FALSE if it is only optional.

go_line_interpolation_as_label ()

char const 		*      go_line_interpolation_as_label      (GOLineInterpolation type);

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.

go_line_interpolation_supports_radial ()

gboolean            go_line_interpolation_supports_radial
                                                        (GOLineInterpolation type);

type :

Returns :


go_line_interpolation_auto_skip ()

gboolean            go_line_interpolation_auto_skip     (GOLineInterpolation type);

type :

Returns :


enum GOArrowType

typedef enum {
	GO_ARROW_NONE,
	GO_ARROW_KITE,
	GO_ARROW_OVAL
	/* GO_ARROW_STEALTH */
	/* GO_ARROW_DIAMOND */
	/* GO_ARROW_OPEN */
} GOArrowType;

GO_ARROW_NONE

no arrow head.

GO_ARROW_KITE

kite head.

GO_ARROW_OVAL

oval head.

GOArrow

typedef struct {
	GOArrowType typ;
	double a, b, c;
} GOArrow;

GOArrowType typ;

GOArrowType.

double a;

first arrow head size parameter.

double b;

second arrow head size parameter.

double c;

third arrow head size parameter.

go_arrow_get_type ()

GType               go_arrow_get_type                   (void);

Returns :


GO_ARROW_TYPE

#define GO_ARROW_TYPE (go_arrow_get_type())


go_arrow_type_as_str ()

char const *        go_arrow_type_as_str                (GOArrowType typ);

typ :

Returns :


go_arrow_type_from_str ()

GOArrowType         go_arrow_type_from_str              (const char *name);

name :

Returns :


go_arrow_dup ()

GOArrow *           go_arrow_dup                        (GOArrow *src);

src :

Returns :


go_arrow_init ()

void                go_arrow_init                       (GOArrow *res,
                                                         GOArrowType typ,
                                                         double a,
                                                         double b,
                                                         double c);

res :

typ :

a :

b :

c :


go_arrow_clear ()

void                go_arrow_clear                      (GOArrow *dst);

dst :


go_arrow_init_kite ()

void                go_arrow_init_kite                  (GOArrow *dst,
                                                         double a,
                                                         double b,
                                                         double c);

dst :

a :

b :

c :


go_arrow_init_oval ()

void                go_arrow_init_oval                  (GOArrow *dst,
                                                         double ra,
                                                         double rb);

dst :

ra :

rb :