PatchworkOS
Loading...
Searching...
No Matches
widgets.h
Go to the documentation of this file.
1#ifndef PATCHWORK_WIDGETS_H
2#define PATCHWORK_WIDGETS_H 1
3
4#include <stdint.h>
5
6#include "drawable.h"
7#include "element.h"
8
9#if defined(__cplusplus)
10extern "C"
11{
12#endif
13
35element_t* button_new(element_t* parent, element_id_t id, const rect_t* rect, const char* text, element_flags_t flags);
36
47element_t* label_new(element_t* parent, element_id_t id, const rect_t* rect, const char* text, element_flags_t flags);
48
51#if defined(__cplusplus)
52}
53#endif
54
55#endif
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
element_t * button_new(element_t *parent, element_id_t id, const rect_t *rect, const char *text, element_flags_t flags)
Create a new button element.
Definition button.c:308
element_t * label_new(element_t *parent, element_id_t id, const rect_t *rect, const char *text, element_flags_t flags)
Create a new label element.
Definition label.c:45
Opaque element structure.
Definition internal.h:23
Definition rect.h:13