PatchworkOS
Loading...
Searching...
No Matches
internal.h
Go to the documentation of this file.
2
3#include <sys/io.h>
4#include <sys/list.h>
5#include <threads.h>
6
7#include "grf.h"
8
14
15typedef struct font
16{
20} font_t;
21
39
40element_t* element_new_root(window_t* win, element_id_t id, const rect_t* rect, const char* text, element_flags_t flags,
41 procedure_t procedure, void* private);
42
57
58#define DISPLAY_MAX_EVENT 64
59
#define MAX_NAME
Maximum length of names.
Definition MAX_NAME.h:11
uint64_t element_flags_t
Element flags type.
Definition element.h:41
uint64_t element_id_t
Element identifier type.
Definition element_id.h:23
surface_type_t
Surface types.
Definition surface.h:33
uint64_t surface_id_t
Definition surface.h:53
window_flags_t
Window flags.
Definition window.h:44
__UINT64_TYPE__ fd_t
A file descriptor.
Definition fd_t.h:12
element_t * element_new_root(window_t *win, element_id_t id, const rect_t *rect, const char *text, element_flags_t flags, procedure_t procedure, void *private)
Definition element.c:76
uint32_t pixel_t
Definition pixel.h:11
uint64_t(* procedure_t)(window_t *, element_t *, const event_t *)
Definition procedure.h:15
static uint64_t procedure(window_t *win, element_t *elem, const event_t *event)
Definition main.c:46
static image_t * image
Definition main.c:5
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
Opaque display structure.
Definition internal.h:61
mtx_t mutex
Definition internal.h:73
fd_t eventsPipe
Definition internal.h:65
fd_t ctl
Definition internal.h:63
list_t images
Definition internal.h:71
font_t * defaultFont
Definition internal.h:72
cmd_buffer_t cmds
Definition internal.h:68
bool isConnected
Definition internal.h:67
fd_t data
Definition internal.h:64
uint64_t eventsInPipe
Definition internal.h:66
list_t fonts
Definition internal.h:70
list_t windows
Definition internal.h:69
Drawable structure.
Definition drawable.h:35
Opaque element structure.
Definition internal.h:23
procedure_t proc
Definition internal.h:28
element_id_t id
Definition internal.h:27
image_props_t imageProps
Definition internal.h:36
rect_t rect
Definition internal.h:31
image_t * image
Definition internal.h:35
list_t children
Definition internal.h:25
element_flags_t flags
Definition internal.h:32
theme_t theme
Definition internal.h:37
struct element * parent
Definition internal.h:26
list_entry_t entry
Definition internal.h:24
window_t * win
Definition internal.h:29
char * text
Definition internal.h:33
text_props_t textProps
Definition internal.h:34
display_t * disp
Definition internal.h:18
list_entry_t entry
Definition internal.h:17
grf_t grf
Definition internal.h:19
Definition grf.h:29
Element image properties structure.
Definition element.h:77
drawable_t draw
Definition internal.h:12
list_entry_t entry
Definition internal.h:11
A entry in a doubly linked list.
Definition list.h:38
A doubly linked list.
Definition list.h:51
Definition rect.h:13
Element text properties structure.
Definition element.h:63
Theme structure.
Definition theme.h:71
Opaque window structure.
Definition internal.h:44
list_entry_t entry
Definition internal.h:45
rect_t rect
Definition internal.h:48
rect_t invalidRect
Definition internal.h:49
window_flags_t flags
Definition internal.h:51
element_t * root
Definition internal.h:54
surface_type_t type
Definition internal.h:50
pixel_t * buffer
Definition internal.h:53
surface_id_t surface
Definition internal.h:52
element_t * clientElement
Definition internal.h:55
display_t * disp
Definition internal.h:46