35 printf(
"cursor: failed to open klog\n");
40 printf(
"cursor: failed to redirect stdout/stderr to klog\n");
49 printf(
"cursor: failed to create display\n");
57 printf(
"cursor: failed to load cursor image\n");
69 printf(
"cursor: failed to create window\n");
75 printf(
"cursor: failed to show window\n");
uint64_t display_next(display_t *disp, event_t *event, clock_t timeout)
Retrieve the next event from the display connection.
uint64_t display_dispatch(display_t *disp, const event_t *event)
Dispatch an event to the appropriate surface.
uint64_t display_get_screen(display_t *disp, rect_t *rect, uint64_t index)
Get the rectangle of a screen.
void display_free(display_t *disp)
Free a display connection.
display_t * display_new(void)
Create a new display connection.
void draw_image(drawable_t *draw, image_t *image, const rect_t *destRect, const point_t *srcPoint)
Draw an image,.
void element_draw_end(element_t *elem, drawable_t *draw)
End drawing to an element.
rect_t element_get_content_rect(element_t *elem)
Get the element's rectangle in local coordinates.
void element_draw_begin(element_t *elem, drawable_t *draw)
Begin drawing to an element.
theme_t * theme_global_get(void)
Get the global theme.
uint64_t window_set_visible(window_t *win, bool isVisible)
Set the visibility of the window.
window_t * window_new(display_t *disp, const char *name, const rect_t *rect, surface_type_t type, window_flags_t flags, procedure_t procedure, void *private)
Allocate and initialize a new window.
void window_free(window_t *win)
Free a window.
fd_t dup2(fd_t oldFd, fd_t newFd)
System call for duplicating file descriptors, with a destination.
fd_t open(const char *path)
System call for opening files.
uint64_t close(fd_t fd)
System call for closing files.
#define NULL
Pointer error value.
__UINT64_TYPE__ fd_t
A file descriptor.
void image_free(image_t *image)
uint64_t image_height(image_t *image)
uint64_t image_width(image_t *image)
image_t * image_new(display_t *disp, const char *path)
static uint64_t procedure(window_t *win, element_t *elem, const event_t *event)
#define RECT_INIT_DIM(x, y, width, height)
#define RECT_HEIGHT(rect)
_PUBLIC int printf(const char *_RESTRICT format,...)
Opaque display structure.
Opaque element structure.
char cursorArrow[MAX_PATH]