wlmaker
Loading...
Searching...
No Matches
box.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMTK_BOX_H__
22#define __WLMTK_BOX_H__
23
24#include <stdbool.h>
25
26#include "libbase/libbase.h"
27
28#include "container.h" // IWYU pragma: keep
29#include "element.h"
30#include "style.h"
31
34
35#ifdef __cplusplus
36extern "C" {
37#endif // __cplusplus
38
46
64
75 wlmtk_box_t *box_ptr,
76 wlmtk_box_orientation_t orientation,
77 const struct wlmtk_margin_style *style_ptr);
78
84void wlmtk_box_fini(wlmtk_box_t *box_ptr);
85
93
100void wlmtk_box_add_element_back(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr);
101
110void wlmtk_box_remove_element(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr);
111
114
117 wlmtk_box_t *box_ptr,
118 const struct wlmtk_margin_style *style_ptr);
119
121extern const bs_test_set_t wlmtk_box_test_set;
122
123#ifdef __cplusplus
124} // extern "C"
125#endif // __cplusplus
126
127#endif /* __WLMTK_BOX_H__ */
128/* == End of box.h ========================================================= */
void wlmtk_box_add_element_front(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr)
Definition box.c:105
wlmtk_box_orientation_t
Definition box.h:40
@ WLMTK_BOX_VERTICAL
Definition box.h:44
@ WLMTK_BOX_HORIZONTAL
Definition box.h:42
void wlmtk_box_add_element_back(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr)
Definition box.c:114
void wlmtk_box_remove_element(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr)
Definition box.c:124
const bs_test_set_t wlmtk_box_test_set
Definition box.c:284
void wlmtk_box_fini(wlmtk_box_t *box_ptr)
Definition box.c:85
wlmtk_element_t * wlmtk_box_element(wlmtk_box_t *box_ptr)
Definition box.c:131
void wlmtk_box_set_style(wlmtk_box_t *box_ptr, const struct wlmtk_margin_style *style_ptr)
Definition box.c:137
bool wlmtk_box_init(wlmtk_box_t *box_ptr, wlmtk_box_orientation_t orientation, const struct wlmtk_margin_style *style_ptr)
Definition box.c:49
Definition box.h:48
wlmtk_box_orientation_t orientation
Definition box.h:54
wlmtk_container_t super_container
Definition box.h:50
wlmtk_container_t margin_container
Definition box.h:59
wlmtk_container_t element_container
Definition box.h:57
struct wlmtk_margin_style style
Definition box.h:62
wlmtk_element_vmt_t orig_super_element_vmt
Definition box.h:52
Definition container.h:43
Definition element.h:188
Definition element.h:67
Definition style.h:116