|
PatchworkOS
|
#include "compositor.h"#include "dwm.h"#include "region.h"#include "screen.h"#include "surface.h"#include <stdio.h>Go to the source code of this file.
Functions | |
| void | compositor_init (void) |
| static bool | compositor_draw_surface (surface_t *surface) |
| static void | compositor_draw_fullscreen (compositor_ctx_t *ctx) |
| static void | compositor_draw_all (compositor_ctx_t *ctx) |
| void | compositor_draw (compositor_ctx_t *ctx) |
| void | compositor_invalidate (const rect_t *rect) |
Variables | |
| static rect_t | screenRect |
| static rect_t | prevCursorRect |
| static region_t | invalidRegion = REGION_CREATE |
| void compositor_draw | ( | compositor_ctx_t * | ctx | ) |
Definition at line 117 of file compositor.c.
References compositor_draw_all(), compositor_draw_fullscreen(), compositor_ctx_t::fullscreen, NULL, screen_swap(), and compositor_ctx_t::wall.
Referenced by dwm_update().
|
static |
Definition at line 68 of file compositor.c.
References compositor_draw_surface(), compositor_invalidate(), compositor_ctx_t::cursor, surface_t::flags, invalidRegion, LIST_FOR_EACH_REVERSE, NULL, compositor_ctx_t::panels, prevCursorRect, RECT_AREA, RECT_INIT, region_clear(), region_is_empty(), screen_transfer_blend(), SURFACE_SCREEN_RECT, SURFACE_VISIBLE, compositor_ctx_t::wall, and compositor_ctx_t::windows.
Referenced by compositor_draw().
|
static |
Definition at line 45 of file compositor.c.
References region_t::count, surface_t::flags, compositor_ctx_t::fullscreen, invalidRegion, region_t::rects, region_clear(), REGION_CREATE, region_intersect(), region_is_empty(), screen_transfer_frontbuffer(), SURFACE_SCREEN_RECT, and SURFACE_VISIBLE.
Referenced by compositor_draw().
Definition at line 21 of file compositor.c.
References region_t::count, surface_t::flags, invalidRegion, region_t::rects, REGION_CREATE, region_intersect(), region_is_empty(), region_subtract(), screen_transfer(), SURFACE_SCREEN_RECT, and SURFACE_VISIBLE.
Referenced by compositor_draw_all().
| void compositor_init | ( | void | ) |
Definition at line 15 of file compositor.c.
References prevCursorRect, RECT_INIT, RECT_INIT_DIM, screen_height(), screen_width(), and screenRect.
Referenced by main().
| void compositor_invalidate | ( | const rect_t * | rect | ) |
Definition at line 135 of file compositor.c.
References invalidRegion, RECT_FIT, region_add(), and screenRect.
Referenced by client_action_surface_focus_set(), client_action_surface_free(), client_action_surface_invalidate(), client_action_surface_move(), client_action_surface_visible_set(), client_free(), compositor_draw_all(), and dwm_handle_mouse_event().
|
static |
Definition at line 13 of file compositor.c.
Referenced by compositor_draw_all(), compositor_draw_fullscreen(), compositor_draw_surface(), and compositor_invalidate().
|
static |
Definition at line 11 of file compositor.c.
Referenced by compositor_draw_all(), and compositor_init().
|
static |
Definition at line 10 of file compositor.c.
Referenced by client_action_surface_focus_set(), client_action_surface_free(), client_action_surface_visible_set(), client_free(), compositor_init(), compositor_invalidate(), main(), popup_open(), start_menu_new(), start_menu_open(), and startmenu_procedure().