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
33
34#ifdef __cplusplus
35extern "C" {
36#endif // __cplusplus
37
45
63
74 wlmtk_box_t *box_ptr,
75 wlmtk_box_orientation_t orientation,
76 const wlmtk_margin_style_t *style_ptr);
77
83void wlmtk_box_fini(wlmtk_box_t *box_ptr);
84
92
99void wlmtk_box_add_element_back(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr);
100
109void wlmtk_box_remove_element(wlmtk_box_t *box_ptr, wlmtk_element_t *element_ptr);
110
113
115extern const bs_test_case_t wlmtk_box_test_cases[];
116
117#ifdef __cplusplus
118} // extern "C"
119#endif // __cplusplus
120
121#endif /* __WLMTK_BOX_H__ */
122/* == 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:39
@ WLMTK_BOX_VERTICAL
Definition box.h:43
@ WLMTK_BOX_HORIZONTAL
Definition box.h:41
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:244
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:47
wlmtk_box_orientation_t orientation
Definition box.h:53
wlmtk_container_vmt_t orig_super_container_vmt
Definition box.h:51
wlmtk_container_t super_container
Definition box.h:49
wlmtk_margin_style_t style
Definition box.h:61
wlmtk_container_t margin_container
Definition box.h:58
wlmtk_container_t element_container
Definition box.h:56
Definition container.h:55
Definition container.h:42
Definition element.h:181
Definition style.h:112