comparison src/mb_types.h @ 16:e17e12b112c4

A simple animation using rdman_redraw_changed().
author Thinker K.F. Li <thinker@branda.to>
date Fri, 01 Aug 2008 18:20:28 +0800
parents c2ce186a5c37
children 41f0907b27ac
comparison
equal deleted inserted replaced
15:c2ce186a5c37 16:e17e12b112c4
14 }; 14 };
15 15
16 /*! \brief Geometry data of a shape or a group of shape. 16 /*! \brief Geometry data of a shape or a group of shape.
17 */ 17 */
18 struct _geo { 18 struct _geo {
19 #ifdef GEO_ORDER
19 unsigned int order; 20 unsigned int order;
21 #endif
20 unsigned int flags; 22 unsigned int flags;
21 shape_t *shape; 23 shape_t *shape;
22 geo_t *next; /*!< \brief Link all geo objects. */ 24 geo_t *next; /*!< \brief Link all geo objects. */
23 25
24 area_t *cur_area, *last_area; 26 area_t *cur_area, *last_area;
69 } coord_t; 71 } coord_t;
70 #define COF_DIRTY 0x1 72 #define COF_DIRTY 0x1
71 73
72 extern void coord_init(coord_t *co, coord_t *parent); 74 extern void coord_init(coord_t *co, coord_t *parent);
73 extern void coord_trans_pos(coord_t *co, co_aix *x, co_aix *y); 75 extern void coord_trans_pos(coord_t *co, co_aix *x, co_aix *y);
76 extern void compute_aggr_of_coord(coord_t *coord);
74 extern void update_aggr_matrix(coord_t *start); 77 extern void update_aggr_matrix(coord_t *start);
75 extern coord_t *preorder_coord_subtree(coord_t *root, coord_t *last); 78 extern coord_t *preorder_coord_subtree(coord_t *root, coord_t *last);
76 79
77 80
78 /*! \brief A grahpic shape. 81 /*! \brief A grahpic shape.