1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
#ifndef _GENERAL_H
#define _GENERAL_H
/* list.c */
List get_node(List list);
List make_list(int size);
void insert(List item, List list);
void delete_item(List item);
void free_node(List node, List list);
/* prio_list.c */
void prio_insert(Prio_list node, Prio_list list, Boolean desc);
/* token.c */
void set_input_file(char *s);
void error_header(void);
int getstring(char *s);
int getfloat(float *f);
void rejecttoken(void);
int getint(int *i);
int getsystemstring(void);
/* printline.c */
void gsave(void);
void grestore(void);
void setfont(char *f, float s);
void setfill(float x, float y, char t, float *f, char p, float a);
void setgray(char t, float *f);
void printline(float x1, float y1, float x2, float y2,
char orientation);
void print_ebar(float x1, float y1, float x2, float ms,
char orientation);
void start_line(float x1, float y1, Curve c);
void cont_line(float x1, float y1);
void end_line(void);
void bezier_control(float x1, float y1);
void bezier_end(float x1, float y1);
void start_poly(float x1, float y1);
void cont_poly(float x1, float y1);
void end_poly(float x, float y, char ftype, float *fill, char pattern,
float parg);
void printellipse(float x, float y, float radius1, float radius2,
char ftype, float *fill, char pattern, float parg);
void set_comment(int c);
void comment(char *s);
void printline_c(float x1, float y1, float x2, float y2, Graph g);
void print_label(Label l);
void setlinewidth(float size);
void setlinestyle(char style, Flist glist);
/* edit.c */
void edit_graphs(Graphs gs);
void copy_label(Label l1, Label l2);
/* process.c */
void process_title(Graph g);
void process_legend(Graph g);
void process_axis1(Axis a, Graph g);
void process_axis2(Axis a, Graph g);
void process_label(Label l, Graph g, int adjust);
void process_label_max_n_mins(Label l, float len, float height);
void process_strings(Graph g);
void process_curve(Curve c, Graph g);
void process_curves(Graph g);
void process_label_extrema(Label l, Graph g);
void process_graph(Graph g);
void process_graphs(Graphs gs);
/* show.c */
void show_graphs(Graphs gs);
/* draw.c */
void draw_axis(Axis a, Axis other);
void draw_label(Label l);
void set_clip(Graph g);
void draw_curves(Graph g);
void draw_curve(Curve c, Graph g);
void draw_mark(float x, float y, Curve c, Graph g);
void draw_arrow(float x1, float y1, float x2, float y2, Curve c);
void draw_legend(Graph g);
void draw_strings(Graph g);
void draw_graph(Graph g);
void draw_graphs(Graphs gs, int pp, int landscape);
void draw_header(Graphs gs, int pp, int landscape);
void draw_footer(Graphs gs, int pp);
/* jgraph.c */
void new_graphs(Graphs gs);
#endif
|