|
PatchworkOS
|
#include <libpatchwork/cmd.h>#include <libpatchwork/pixel.h>#include <libpatchwork/point.h>#include <libpatchwork/rect.h>#include <libpatchwork/surface.h>#include <sys/io.h>#include <sys/list.h>Go to the source code of this file.
Data Structures | |
| struct | timer_t |
| struct | surface_t |
Macros | |
| #define | SURFACE_SCREEN_RECT(surface) RECT_INIT_DIM(surface->pos.x, surface->pos.y, surface->width, surface->height) |
| #define | SURFACE_CONTENT_RECT(surface) RECT_INIT_DIM(0, 0, surface->width, surface->height) |
Typedefs | |
| typedef struct client | client_t |
Functions | |
| surface_t * | surface_new (client_t *client, const char *name, const point_t *point, uint64_t width, uint64_t height, surface_type_t type) |
| void | surface_free (surface_t *surface) |
| void | surface_get_info (surface_t *surface, surface_info_t *info) |
| #define SURFACE_CONTENT_RECT | ( | surface | ) | RECT_INIT_DIM(0, 0, surface->width, surface->height) |
| #define SURFACE_SCREEN_RECT | ( | surface | ) | RECT_INIT_DIM(surface->pos.x, surface->pos.y, surface->width, surface->height) |
| void surface_free | ( | surface_t * | surface | ) |
Definition at line 57 of file surface.c.
References surface_t::buffer, free(), surface_t::height, munmap(), and surface_t::width.
Referenced by client_action_surface_free(), client_action_surface_new(), and client_free().
| void surface_get_info | ( | surface_t * | surface, |
| surface_info_t * | info | ||
| ) |
Definition at line 63 of file surface.c.
References surface_t::flags, surface_t::id, info, fb_info_t::name, surface_t::name, strcpy(), SURFACE_SCREEN_RECT, and surface_t::type.
Referenced by dwm_attach(), dwm_detach(), and dwm_report_produce().
| surface_t * surface_new | ( | client_t * | client, |
| const char * | name, | ||
| const point_t * | point, | ||
| uint64_t | width, | ||
| uint64_t | height, | ||
| surface_type_t | type | ||
| ) |
Definition at line 14 of file surface.c.
References surface_t::buffer, surface_t::client, surface_t::clientEntry, CLOCKS_NEVER, close(), timer_t::deadline, surface_t::dwmEntry, ENOMEM, ERR, errno, timer_t::flags, surface_t::flags, free(), surface_t::height, surface_t::id, list_entry_init(), malloc(), memset(), mmap(), surface_t::name, newId, NULL, open(), surface_t::pos, printf(), PROT_READ, PROT_WRITE, surface_t::shmem, strcpy(), timer_t::timeout, surface_t::timer, TIMER_NONE, surface_t::type, and surface_t::width.
Referenced by client_action_surface_new().