comparison src/event.c @ 438:1ee11bab38fa

More doc
author Thinker K.F. Li <thinker@branda.to>
date Thu, 30 Jul 2009 15:42:47 +0800
parents 7f7855df2af0
children 254854ed479c
comparison
equal deleted inserted replaced
437:e73b3644d802 438:1ee11bab38fa
560 } 560 }
561 } 561 }
562 return FALSE; 562 return FALSE;
563 } 563 }
564 564
565 /*! \brief Find all shapes whose bounding box include a specified position.
566 */
565 static 567 static
566 int _shape_pos_is_in(shape_t *shape, co_aix x, co_aix y, 568 int _shape_pos_is_in(shape_t *shape, co_aix x, co_aix y,
567 int *in_stroke, cairo_t *cr) { 569 int *in_stroke, cairo_t *cr) {
568 int r; 570 int r;
569 571
577 return FALSE; 579 return FALSE;
578 580
579 return TRUE; 581 return TRUE;
580 } 582 }
581 583
584 /*! \brief Find first shape that is draw at a specified position.
585 */
582 static shape_t *_find_shape_in_pos(redraw_man_t *rdman, 586 static shape_t *_find_shape_in_pos(redraw_man_t *rdman,
583 co_aix x, co_aix y, int *in_stroke) { 587 co_aix x, co_aix y, int *in_stroke) {
584 shape_t *shape; 588 shape_t *shape;
585 cairo_t *cr; 589 cairo_t *cr;
586 int i, r; 590 int i, r;