00001
00002 #define XFIG_NOT_USED -1
00003
00004 #define XFIG_DEFAULT -1
00005 #define XFIG_BLACK 0
00006 #define XFIG_BLUE 1
00007 #define XFIG_GREEN 2
00008 #define XFIG_CYAN 3
00009 #define XFIG_RED 4
00010 #define XFIG_MAGENTA 5
00011 #define XFIG_YELLOW 6
00012 #define XFIG_WHITE 7
00013
00014 #define XFIG_NOT_FILLED 0
00015 #define XFIG_WHITE_FILLED 1
00016 #define XFIG_BLACK_FILLED 21
00017
00018 #define XFIG_SOLID 0
00019 #define XFIG_DASHED 1
00020 #define XFIG_DOTTED 2
00021
00022 #define XFIG_COMPOUND 6
00023
00024 #define XFIG_POLYLINE 2
00025 #define XFIG_POLY_TYPE 1
00026 #define XFIG_BOX_TYPE 2
00027 #define XFIG_POLYGON_TYPE 3
00028 #define XFIG_ARC_BOX_TYPE 4
00029 #define XFIG_EPS_BOX_TYPE 5
00030 #define XFIG_ELLIPSE_TYPE 1
00031 #define XFIG_TEXT_TYPE 4
00032 #define XFIG_END_POLY 9999
00033
00034 #define XFIG_LEFT 0
00035 #define XFIG_RIGHT 2
00036 #define XFIG_CENTER 1
00037
00038 #define XFIG_DEFAULT -1
00039 #define XFIG_TIMES_ROMAN 0
00040 #define XFIG_TIMES_ITALIC 1
00041 #define XFIG_TIMES_BOLD 2
00042 #define XFIG_TIMES_BOLD_ITALIC 3
00043
00044 extern void XfigStartCompound(FILE *fptr, int ix1, int iy1, int ix2, int iy2);
00045
00046 extern void XfigEndCompound(FILE *fptr);
00047
00048 extern void XfigPolyLine(FILE *fptr, int *x, int *y, int npoints,
00049 int linestyle, int thickness, int color);
00050
00051 extern void XfigVector(FILE *fptr, int x, int y, int fx, int fy,
00052 int linestyle, int thickness, int color);
00053
00054 extern void XfigLine(FILE *fptr, int x, int y, int x1, int y1,
00055 int linestyle, int thickness, int color);
00056
00057 extern void XfigBox(FILE *fptr, int ix1, int iy1, int ix2, int iy2,
00058 int linestyle, int thickness, int color);
00059
00060 extern void XfigCircle(FILE *fptr, int x, int y, int radius,
00061 int linestyle, int thickness, int color);
00062
00063 extern void XfigText(FILE *fptr, int x, int y, int sub_type,
00064 int font, int font_size,
00065 int color, float angle, char *text);