Lines Matching refs:ren

17 extern void clear_pattern_rectangles (renderer ren, rectangles l);
24 edit_interface_rep::draw_text (renderer ren, rectangles& l) { in draw_text() argument
28 ren->set_background (bg); in draw_text()
31 eb->redraw (ren, eb->find_box_path (tp, tp_found), l); in draw_text()
37 edit_interface_rep::draw_env (renderer ren) { in draw_env() argument
40 ren->set_pencil (pencil (rgb_color (0, 85, 85, 24), ren->pixel)); in draw_env()
41 ren->draw_rectangles (env_rects); in draw_env()
44 ren->set_pencil (pencil (rgb_color (0, 255, 255), ren->pixel)); in draw_env()
45 ren->draw_rectangles (foc_rects); in draw_env()
49 ren->set_pencil (pencil (rgb_color (112, 208, 112), ren->pixel)); in draw_env()
51 ren->set_pencil (pencil (rgb_color (208, 144, 80), ren->pixel)); in draw_env()
52 ren->draw_rectangles (sem_rects); in draw_env()
58 edit_interface_rep::draw_cursor (renderer ren) { in draw_cursor() argument
71 ren->set_pencil (pencil (cuc, pixel)); in draw_cursor()
86 ren->line (x1-lserif, y1, x1+rserif, y1); in draw_cursor()
88 ren->line (x1, y1, x2, y2-pixel); in draw_cursor()
89 if (series == "bold") ren->line (x1-pixel, y1, x2-pixel, y2-pixel); in draw_cursor()
90 ren->line (x2-lserif, y2-pixel, x2+rserif, y2-pixel); in draw_cursor()
97 edit_interface_rep::draw_surround (renderer ren, rectangle r) { in draw_surround() argument
98 ren->set_background (light_grey); in draw_surround()
102 ren->clear (r->x1, r->y1, max (r->x1, eb->x1), r->y2); in draw_surround()
103 ren->clear (min (r->x2, eb->x2), r->y1, r->x2, r->y2); in draw_surround()
105 ren->clear (r->x1, r->y1, r->x2, max (r->y1, eb->y1)); in draw_surround()
106 ren->clear (r->x1, min (r->y2, eb->y2), r->x2, r->y2); in draw_surround()
110 edit_interface_rep::draw_context (renderer ren, rectangle r) { in draw_context() argument
112 ren->set_pencil (pencil (light_grey, pixel)); in draw_context()
116 ren->line (r->x1, y, r->x2, y); in draw_context()
118 draw_surround (ren, r); in draw_context()
122 edit_interface_rep::draw_selection (renderer ren, rectangle r) { in draw_selection() argument
123 rectangles visible (thicken (r, 2 * ren->pixel, 2 * ren->pixel)); in draw_selection()
125 ren->set_pencil (pencil (rgb_color (32, 160, 96), ren->pixel)); in draw_selection()
126 ren->draw_rectangles (locus_rects); in draw_selection()
129 ren->set_pencil (pencil (rgb_color (240, 192, 0), ren->pixel)); in draw_selection()
131 ren->draw_selection (alt_selection_rects[i] & visible); in draw_selection()
133 ren->draw_rectangles (alt_selection_rects[i] & visible); in draw_selection()
138 ren->set_pencil (pencil (col, ren->pixel)); in draw_selection()
140 ren->draw_selection (selection_rects & visible); in draw_selection()
142 ren->draw_rectangles (selection_rects & visible); in draw_selection()
148 edit_interface_rep::draw_graphics (renderer ren) { in draw_graphics() argument
153 draw_graphical_object (ren); in draw_graphics()
157 ren->set_pencil (pencil (red, pixel)); in draw_graphics()
158 ren->line (cu->ox, cu->oy-5*pixel, cu->ox, cu->oy+5*pixel); in draw_graphics()
159 ren->line (cu->ox-5*pixel, cu->oy, cu->ox+5*pixel, cu->oy); in draw_graphics()
163 ren->set_pencil (pencil (red, pixel)); in draw_graphics()
164 ren->line (cu->ox, cu->oy-s, cu->ox, cu->oy+s); in draw_graphics()
165 ren->line (cu->ox-s, cu->oy, cu->ox+s, cu->oy); in draw_graphics()
166 ren->line (cu->ox, cu->oy-s,cu->ox-a, cu->oy-s+a); in draw_graphics()
167 ren->line (cu->ox, cu->oy-s, cu->ox+a, cu->oy-s+a); in draw_graphics()
168 ren->line (cu->ox, cu->oy+s, cu->ox-a, cu->oy+s-a); in draw_graphics()
169 ren->line (cu->ox, cu->oy+s, cu->ox+a, cu->oy+s-a); in draw_graphics()
170 ren->line (cu->ox-s, cu->oy, cu->ox-s+a, cu->oy+a); in draw_graphics()
171 ren->line (cu->ox-s, cu->oy, cu->ox-s+a, cu->oy-a); in draw_graphics()
172 ren->line (cu->ox+s, cu->oy, cu->ox+s-a, cu->oy+a); in draw_graphics()
173 ren->line (cu->ox+s, cu->oy, cu->ox+s-a, cu->oy-a); in draw_graphics()
182 edit_interface_rep::draw_pre (renderer win, renderer ren, rectangle r) { in draw_pre() argument
185 ren->set_background (bg); in draw_pre()
186 clear_pattern_rectangles (ren, rectangles (translate (r, ren->ox, ren->oy))); in draw_pre()
187 draw_surround (ren, r); in draw_pre()
190 draw_cursor (ren); in draw_pre()
194 win->put_shadow (ren, lr->x1, lr->y1, lr->x2, lr->y2); in draw_pre()
200 edit_interface_rep::draw_post (renderer win, renderer ren, rectangle r) { in draw_post() argument
202 ren->set_zoom_factor (zoomf); in draw_post()
203 draw_context (ren, r); in draw_post()
204 draw_env (ren); in draw_post()
205 draw_selection (ren, r); in draw_post()
206 draw_graphics (ren); in draw_post()
207 draw_cursor (ren); // the text cursor must be drawn over the graphical object in draw_post()
208 ren->reset_zoom_factor (); in draw_post()
217 renderer ren= shadow; in draw_with_shadow() local
221 ren->set_zoom_factor (zoomf); in draw_with_shadow()
222 draw_pre (win, ren, r); in draw_with_shadow()
223 draw_text (ren, l); in draw_with_shadow()
224 ren->reset_zoom_factor (); in draw_with_shadow()
228 ren->set_zoom_factor (zoomf); in draw_with_shadow()
229 l= l & rectangles (translate (r, ren->ox, ren->oy)); in draw_with_shadow()
231 copy_always= translate (copy_always, ren->ox, ren->oy); in draw_with_shadow()
236 ren->reset_zoom_factor (); in draw_with_shadow()
238 draw_post (win, ren, r); in draw_with_shadow()
240 SI x1= ((SI) (l->item->x1 * magf)) - ren->ox - PIXEL; in draw_with_shadow()
241 SI y1= ((SI) (l->item->y1 * magf)) - ren->oy - PIXEL; in draw_with_shadow()
242 SI x2= ((SI) (l->item->x2 * magf)) - ren->ox + PIXEL; in draw_with_shadow()
243 SI y2= ((SI) (l->item->y2 * magf)) - ren->oy + PIXEL; in draw_with_shadow()
244 ren->outer_round (x1, y1, x2, y2); in draw_with_shadow()
245 win->put_shadow (ren, x1, y1, x2, y2); in draw_with_shadow()