|
PatchworkOS
|
Go to the source code of this file.
Data Structures | |
| struct | region_t |
Macros | |
| #define | MAX_REGION_RECTS 128 |
| #define | REGION_CREATE {.count = 0} |
Functions | |
| static void | region_init (region_t *region) |
| static void | region_clear (region_t *region) |
| static bool | region_is_empty (const region_t *region) |
| static void | region_add (region_t *region, const rect_t *rect) |
| static void | region_subtract (region_t *region, const rect_t *subRect) |
| static void | region_intersect (region_t *region, region_t *out, const rect_t *clipRect) |
Definition at line 32 of file region.h.
References region_t::count, MAX_REGION_RECTS, RECT_AREA, RECT_EXPAND_TO_CONTAIN, RECT_OVERLAP, and region_t::rects.
Referenced by compositor_invalidate(), region_intersect(), region_subtract(), and screen_invalidate().
|
inlinestatic |
Definition at line 22 of file region.h.
References region_t::count.
Referenced by compositor_draw_all(), compositor_draw_fullscreen(), region_intersect(), screen_swap(), and screen_transfer_frontbuffer().
|
inlinestatic |
|
inlinestatic |
Definition at line 86 of file region.h.
References region_t::count, RECT_AREA, RECT_INTERSECT, region_t::rects, region_add(), and region_clear().
Referenced by compositor_draw_fullscreen(), and compositor_draw_surface().
Definition at line 27 of file region.h.
References region_t::count.
Referenced by compositor_draw_all(), compositor_draw_fullscreen(), and compositor_draw_surface().
Definition at line 69 of file region.h.
References rect_subtract_t::count, region_t::count, RECT_SUBTRACT, rect_subtract_t::rects, region_t::rects, region_add(), and REGION_CREATE.
Referenced by compositor_draw_surface().