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
25
26#include "container.h"
27#include "style.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif // __cplusplus
32
40
61
73 wlmtk_box_t *box_ptr,
74 wlmtk_env_t *env_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
bool wlmtk_box_init(wlmtk_box_t *box_ptr, wlmtk_env_t *env_ptr, wlmtk_box_orientation_t orientation, const wlmtk_margin_style_t *style_ptr)
Definition box.c:41
wlmtk_box_orientation_t
Definition box.h:34
@ WLMTK_BOX_VERTICAL
Definition box.h:38
@ WLMTK_BOX_HORIZONTAL
Definition box.h:36
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
Definition box.h:42
wlmtk_box_orientation_t orientation
Definition box.h:48
wlmtk_container_vmt_t orig_super_container_vmt
Definition box.h:46
wlmtk_container_t super_container
Definition box.h:44
wlmtk_margin_style_t style
Definition box.h:59
wlmtk_container_t margin_container
Definition box.h:56
wlmtk_env_t * env_ptr
Definition box.h:51
wlmtk_container_t element_container
Definition box.h:54
Definition container.h:55
Definition container.h:38
Definition element.h:172
Definition env.c:32
Definition style.h:112