112 |
void |
void |
113 |
antiright_graph_line(int x, int y, int x1, int y1) |
antiright_graph_line(int x, int y, int x1, int y1) |
114 |
{ |
{ |
115 |
antiright_graph_object(x, y, x1, y1, NULL, NULL, LINE); |
antiright_graph_object(x, y, x1, y1, 0, 0, LINE); |
116 |
} |
} |
117 |
|
|
118 |
void |
void |
119 |
antiright_graph_rect(int x, int y, unsigned int width, unsigned int height) |
antiright_graph_rect(int x, int y, unsigned int width, unsigned int height) |
120 |
{ |
{ |
121 |
antiright_graph_object(x, y, NULL, NULL, width, height, RECT); |
antiright_graph_object(x, y, 0, 0, width, height, RECT); |
122 |
} |
} |
123 |
|
|
124 |
void |
void |
125 |
antiright_graph_system(char *command) |
antiright_graph_system(char *command) |
126 |
{ |
{ |
127 |
char *output; |
char *output; |
128 |
unsigned int column; |
unsigned int column=0; |
129 |
unsigned int line; |
unsigned int line; |
130 |
output=antiright_pipe_read(command); |
output=antiright_pipe_read(command); |
131 |
for(line=0; (line*column<strlen(output)) && (output[line*column]!='\0'); |
for(line=0; (line*column<strlen(output)) && (output[line*column]!='\0'); |
151 |
char *system_command; |
char *system_command; |
152 |
char *output; |
char *output; |
153 |
int x; |
int x; |
154 |
for(x=0; x<antiright.graph.width; x++) |
for(x=0; x<(int)antiright.graph.width; x++) |
155 |
{ |
{ |
156 |
asprintf(&system_command, "%s %d", command, x); |
asprintf(&system_command, "%s %d", command, x); |
157 |
output=antiright_pipe_read(command); |
output=antiright_pipe_read(command); |
164 |
antiright_graph_expose(Widget widget, |
antiright_graph_expose(Widget widget, |
165 |
XtPointer client_data, XtPointer call_data) |
XtPointer client_data, XtPointer call_data) |
166 |
{ |
{ |
167 |
|
widget=NULL; |
168 |
|
client_data=NULL; |
169 |
|
call_data=NULL; |
170 |
|
|
171 |
antiright_draw_clear(&antiright.graph.drawing); |
antiright_draw_clear(&antiright.graph.drawing); |
172 |
antiright_draw_grid(); |
antiright_draw_grid(); |
173 |
|
|
221 |
antiright_graph_resize(Widget widget, |
antiright_graph_resize(Widget widget, |
222 |
XtPointer client_data, XtPointer call_data) |
XtPointer client_data, XtPointer call_data) |
223 |
{ |
{ |
224 |
|
|
225 |
|
call_data=NULL; |
226 |
|
|
227 |
Dimension width, height; |
Dimension width, height; |
228 |
XtVaGetValues(antiright.graph.widget, |
XtVaGetValues(antiright.graph.widget, |
229 |
XmNwidth, &width, |
XmNwidth, &width, |