/* AntiRight (c) 2003-2005 Jeffrey Bedard jefbed@e-list.net This file is part of AntiRight. AntiRight is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. AntiRight is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with AntiRight; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef AR_GRAPH_H #define AR_GRAPH_H enum { POINT=0,LINE,RECT }; struct antiright_graph_point { int x, y; int x1, y1; XColor color; unsigned int height, width, shape; }; struct antiright_graph_struct { Widget widget; unsigned int width, height, point_counter; struct antiright_drawing_structure drawing; struct antiright_graph_point *points; XColor *colors; }; Widget antiright_create_graph(Widget parent); void antiright_graph_equation(char *command); void antiright_graph_system(char *command); void antiright_graph_point(int x_arg, int y_arg); void antiright_graph_object(int x_arg, int y_arg, int x1_arg, int y1_arg, unsigned int height, unsigned int width, unsigned int shape); #endif /* not AR_GRAPH_H */