25 rect_t leftButtonRect = middleButtonRect;
29 rect_t rightButtonRect = middleButtonRect;
78 popup->
result =
event->lAction.source;
void display_disconnect(display_t *disp)
Disconnect the display connection.
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_text_multiline(drawable_t *draw, const rect_t *rect, const font_t *font, align_t xAlign, align_t yAlign, pixel_t pixel, const char *text)
Draw multiline text to a drawable.
void draw_rect(drawable_t *draw, const rect_t *rect, pixel_t pixel)
Draw a filled rectangle.
theme_t * element_get_theme(element_t *elem)
Get the theme of an element.
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.
void * element_get_private(element_t *elem)
Get private data for an element.
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.
display_t * window_get_display(window_t *win)
Get the display associated with the window.
@ WINDOW_NO_CONTROLS
Disable controls (close/minimize buttons), only applies if WINDOW_DECO is set.
@ WINDOW_DECO
Enable decorations (titlebar, close/minimize buttons, etc).
#define NULL
Pointer error value.
#define ERR
Integer error value.
#define RECT_INIT_DIM(x, y, width, height)
#define RECT_HEIGHT(rect)
Opaque display structure.
Opaque element structure.