comparison src/mb_types.h @ 139:1695a4b02b14

Members of coords are geos instead of shapes, now.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 22 Sep 2008 19:22:57 +0800
parents 9f4fc9ecfd1f
children 0de8fd11271e
comparison
equal deleted inserted replaced
138:9f4fc9ecfd1f 139:1695a4b02b14
42 #ifdef GEO_ORDER 42 #ifdef GEO_ORDER
43 unsigned int order; 43 unsigned int order;
44 #endif 44 #endif
45 unsigned int flags; 45 unsigned int flags;
46 shape_t *shape; 46 shape_t *shape;
47 geo_t *next; /*!< \brief Link all geo objects. */ 47 geo_t *coord_next; /*!< \brief Link all member geos together. */
48 48
49 area_t *cur_area, *last_area; 49 area_t *cur_area, *last_area;
50 area_t areas[2]; 50 area_t areas[2];
51 51
52 subject_t *mouse_event; 52 subject_t *mouse_event;
106 STAILQ(struct _coord) children; 106 STAILQ(struct _coord) children;
107 struct _coord *sibling; 107 struct _coord *sibling;
108 unsigned int before_pmem; /*!< \brief The coord is before nth member 108 unsigned int before_pmem; /*!< \brief The coord is before nth member
109 * of parent. */ 109 * of parent. */
110 110
111 STAILQ(shape_t) members; /*!< All shape_t objects in this coord. */ 111 int num_members;
112 STAILQ(geo_t) members; /*!< All geo_t members in this coord. */
112 subject_t *mouse_event; 113 subject_t *mouse_event;
113 } coord_t; 114 } coord_t;
114 #define COF_DIRTY 0x1 115 #define COF_DIRTY 0x1
115 #define COF_HIDDEN 0x2 116 #define COF_HIDDEN 0x2
116 #define COF_OWN_CANVAS 0x4 /*!< A coord owns a canvas or inherit it 117 #define COF_OWN_CANVAS 0x4 /*!< A coord owns a canvas or inherit it
143 */ 144 */
144 struct _shape { 145 struct _shape {
145 int sh_type; 146 int sh_type;
146 geo_t *geo; 147 geo_t *geo;
147 coord_t *coord; 148 coord_t *coord;
148 shape_t *coord_mem_next;
149 paint_t *fill, *stroke; 149 paint_t *fill, *stroke;
150 co_aix stroke_width; 150 co_aix stroke_width;
151 int stroke_linecap:2; 151 int stroke_linecap:2;
152 int stroke_linejoin:2; 152 int stroke_linejoin:2;
153 void (*free)(shape_t *shape); 153 void (*free)(shape_t *shape);