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)
10
extern
"C"
11
{
12
#endif
13
35
element_t
*
button_new
(
element_t
* parent,
element_id_t
id
,
const
rect_t
* rect,
const
char
* text,
element_flags_t
flags);
36
47
element_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
drawable.h
element.h
element_flags_t
uint64_t element_flags_t
Element flags type.
Definition
element.h:41
element_id_t
uint64_t element_id_t
Element identifier type.
Definition
element_id.h:23
button_new
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
label_new
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
stdint.h
element_t
Opaque element structure.
Definition
internal.h:23
rect_t
Definition
rect.h:13
include
libpatchwork
widgets.h
Generated by
1.9.8