Mercurial > MadButterfly
comparison include/mb_types.h @ 1059:36aef79d68e4
Move macros privated used by redraw manager to redraw_man.c
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 28 Nov 2010 12:07:37 +0800 |
parents | 8679b03f72e8 |
children | 09c1ef31884f |
comparison
equal
deleted
inserted
replaced
1058:3a03b0953e22 | 1059:36aef79d68e4 |
---|---|
307 #define coord_nocache(co) \ | 307 #define coord_nocache(co) \ |
308 do { \ | 308 do { \ |
309 (co)->flags &= ~COF_CACHE_MASK; \ | 309 (co)->flags &= ~COF_CACHE_MASK; \ |
310 } while(0) | 310 } while(0) |
311 #define coord_is_root(co) ((co)->parent == NULL) | 311 #define coord_is_root(co) ((co)->parent == NULL) |
312 #define coord_is_cached(co) ((co)->flags & COF_OWN_CANVAS) | |
313 #define coord_is_always_cached(co) ((co)->flags & COF_ALWAYS_CACHE) | |
314 #define coord_is_fast_cached(co) ((co)->flags & COF_FAST_MASK) | |
315 #define coord_is_precise_cached(co) ((co)->flags & COF_PRECISE_MASK) | |
316 #define coord_is_zeroing(co) ((co)->flags & COF_MUST_ZEROING) | |
317 #define coord_set_zeroing(co) \ | |
318 do { (co)->flags |= COF_MUST_ZEROING; } while(0) | |
319 #define coord_clear_zeroing(co) \ | |
320 do { (co)->flags &= ~COF_MUST_ZEROING; } while(0) | |
321 #define coord_set_flags(co, _flags) \ | |
322 do { (co)->flags |= (_flags); } while(0) | |
323 #define coord_get_parent(co) ((co)->parent) | |
324 #define coord_get_flags(co, _flags) ((co)->flags & (_flags)) | |
325 #define coord_clear_flags(co, _flags) \ | |
326 do { (co)->flags &= ~(_flags); } while(0) | |
327 #define coord_get_mouse_event(coord) ((coord)->mouse_event) | 312 #define coord_get_mouse_event(coord) ((coord)->mouse_event) |
328 #define coord_get_opacity(coord) ((coord)->opacity) | 313 #define coord_get_opacity(coord) ((coord)->opacity) |
329 #define coord_set_opacity(coord, v) do { (coord)->opacity = v; } while(0) | 314 #define coord_set_opacity(coord, v) do { (coord)->opacity = v; } while(0) |
330 #define coord_get_aggr_matrix(coord) ((coord)->aggr_matrix) | 315 #define coord_get_aggr_matrix(coord) ((coord)->aggr_matrix) |
331 #define coord_get_matrix(coord) ((coord)->matrix) | 316 #define coord_get_matrix(coord) ((coord)->matrix) |
359 shape != NULL; \ | 344 shape != NULL; \ |
360 shape = geo_get_shape_safe(STAILQ_NEXT(geo_t, coord_next, \ | 345 shape = geo_get_shape_safe(STAILQ_NEXT(geo_t, coord_next, \ |
361 sh_get_geo(shape)))) | 346 sh_get_geo(shape)))) |
362 #define coord_get_area(coord) ((coord)->cur_area) | 347 #define coord_get_area(coord) ((coord)->cur_area) |
363 #define coord_get_last_area(coord) ((coord)->last_area) | 348 #define coord_get_last_area(coord) ((coord)->last_area) |
364 #define coord_get_pcache_area(coord) ((coord)->canvas_info->pcache_cur_area) | |
365 #define coord_get_pcache_last_area(coord) \ | |
366 ((coord)->canvas_info->pcache_last_area) | |
367 #define coord_get_cached(coord) ((coord)->canvas_info->owner) | |
368 #define _coord_get_canvas(coord) ((coord)->canvas_info->canvas) | |
369 #define _coord_set_canvas(coord, _canvas) \ | |
370 do { \ | |
371 (coord)->canvas_info->canvas = _canvas; \ | |
372 } while(0) | |
373 #define _coord_get_dirty_areas(coord) (&(coord)->canvas_info->dirty_areas) | |
374 #define _coord_get_aggr_dirty_areas(coord) \ | |
375 ((coord)->canvas_info->aggr_dirty_areas) | |
376 #define coord_get_2pdev(coord) ((coord)->canvas_info->cache_2_pdev) | |
377 #define coord_get_2pdev_rev(coord) ((coord)->canvas_info->cache_2_pdev_rev) | |
378 #define coord_get_aggr2pdev(coord) ((coord)->canvas_info->aggr_2_pdev) | |
379 #define coord_get_aggr2pdev_rev(coord) ((coord)->canvas_info->aggr_2_pdev_rev) | |
380 | 349 |
381 /* @} */ | 350 /* @} */ |
382 | 351 |
383 /*! \brief A grahpic shape. | 352 /*! \brief A grahpic shape. |
384 * | 353 * |