wlmaker
Loading...
Searching...
No Matches
box.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_BOX_H__
21#define __WLMTK_BOX_H__
22
23#include <stdbool.h>
24
25#include "libbase/libbase.h"
26
27#include "container.h"
28#include "element.h"
29#include "style.h"
30
31struct _wlmtk_box_t;
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 wlmtk_margin_style_t *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
116extern const bs_test_case_t wlmtk_box_test_cases[];
117
118#ifdef __cplusplus
119} // extern "C"
120#endif // __cplusplus
121
122#endif /* __WLMTK_BOX_H__ */
123/* == End of box.h ========================================================= */
void wlmtk_box_add_element_front(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr)
Definition box.c:100
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:108
void wlmtk_box_remove_element(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr)
Definition box.c:117
void wlmtk_box_fini(wlmtk_box_t *box_ptr)
Definition box.c:80
wlmtk_element_t * wlmtk_box_element(wlmtk_box_t *box_ptr)
Definition box.c:123
const bs_test_case_t wlmtk_box_test_cases[]
Definition box.c:253
bool wlmtk_box_init(wlmtk_box_t *box_ptr, wlmtk_box_orientation_t orientation, const wlmtk_margin_style_t *style_ptr)
Definition box.c:44
Definition box.h:48
wlmtk_box_orientation_t orientation
Definition box.h:54
wlmtk_container_vmt_t orig_super_container_vmt
Definition box.h:52
wlmtk_container_t super_container
Definition box.h:50
wlmtk_margin_style_t style
Definition box.h:62
wlmtk_container_t margin_container
Definition box.h:59
wlmtk_container_t element_container
Definition box.h:57
Definition container.h:60
Definition container.h:43
Definition element.h:175
Definition style.h:112