comparison src/shape_text.c @ 30:e06a4a667ce2

Accept mouse/pointer event and hint the shape that the pointer is over. - add find_shape_at_pos()
author Thinker K.F. Li <thinker@branda.to>
date Tue, 05 Aug 2008 12:40:45 +0800
parents 19c603dd6ff9
children da770188a44d
comparison
equal deleted inserted replaced
29:f56c96b035a8 30:e06a4a667ce2
126 cairo_move_to(cr, text->d_x, text->d_y); 126 cairo_move_to(cr, text->d_x, text->d_y);
127 cairo_text_path(cr, text->data); 127 cairo_text_path(cr, text->data);
128 } 128 }
129 129
130 130
131 void sh_text_draw(shape_t *shape, cairo_t *cr) {
132 draw_text((sh_text_t *)shape, cr);
133 }
134
131 void sh_text_fill(shape_t *shape, cairo_t *cr) { 135 void sh_text_fill(shape_t *shape, cairo_t *cr) {
132 sh_text_t *text = (sh_text_t *)shape; 136 sh_text_t *text = (sh_text_t *)shape;
133 137
134 draw_text(text, cr); 138 draw_text(text, cr);
135 cairo_fill(cr); 139 cairo_fill(cr);