56 |
} |
} |
57 |
|
|
58 |
void |
void |
59 |
antiright_draw_point(struct antiright_drawing_strcuture *drawing, |
antiright_draw_point(struct antiright_drawing_structure *drawing, |
60 |
int x, int y) |
int x, int y) |
61 |
{ |
{ |
62 |
XDrawPoint(XDRAWP, x, y); |
XDrawPoint(XDRAWP, x, y); |
148 |
antiright_draw_allocate_color(drawing, &color); |
antiright_draw_allocate_color(drawing, &color); |
149 |
XSetForeground(drawing->display, drawing->gc, color.pixel); |
XSetForeground(drawing->display, drawing->gc, color.pixel); |
150 |
} |
} |
151 |
|
void |
152 |
|
antiright_draw_background(struct antiright_drawing_structure *drawing, |
153 |
|
int red_int, int green_int, int blue_int) |
154 |
|
{ |
155 |
|
XColor color; |
156 |
|
antiright_multiply_colors(&color, red_int, green_int, blue_int); |
157 |
|
antiright_draw_allocate_color(drawing, &color); |
158 |
|
XSetBackground(drawing->display, drawing->gc, color.pixel); |
159 |
|
} |
160 |
|
|
161 |
|
void |
162 |
|
antiright_widget_background(Widget widget, |
163 |
|
int red_int, int green_int, int blue_int) |
164 |
|
{ |
165 |
|
XColor color; |
166 |
|
struct antiright_drawing_structure drawing; |
167 |
|
antiright_drawing_initialize(widget, &drawing); |
168 |
|
antiright_multiply_colors(&color, red_int, green_int, blue_int); |
169 |
|
antiright_draw_allocate_color(&drawing, &color); |
170 |
|
XtVaSetValues(antiright.graph.widget, |
171 |
|
XmNbackground, color.pixel, |
172 |
|
NULL); |
173 |
|
} |