wlmaker
Loading...
Searching...
No Matches
tile.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_TILE_H__
21#define __WLMTK_TILE_H__
22
25
26#include <libbase/libbase.h>
27#include <stdbool.h>
28#include <stdint.h>
29
30#include "buffer.h"
31#include "container.h"
32#include "element.h"
33#include "style.h"
34
35#ifdef __cplusplus
36extern "C" {
37#endif // __cplusplus
38
40typedef struct {
44 uint64_t size;
46 uint64_t content_size;
48 uint64_t bezel_width;
50
70
80 wlmtk_tile_t *tile_ptr,
81 const wlmtk_tile_style_t *style_ptr);
82
88void wlmtk_tile_fini(wlmtk_tile_t *tile_ptr);
89
105 wlmtk_tile_t *tile_ptr,
106 struct wlr_buffer *wlr_buffer_ptr);
107
118 wlmtk_tile_t *tile_ptr,
119 wlmtk_element_t *element_ptr);
120
131 wlmtk_tile_t *tile_ptr,
132 wlmtk_element_t *element_ptr);
133
136
138extern const bs_test_case_t wlmtk_tile_test_cases[];
139
140#ifdef __cplusplus
141} // extern "C"
142#endif // __cplusplus
143
144#endif /* __WLMTK_TILE_H__ */
145/* == End of tile.h ======================================================== */
Definition buffer.h:38
Definition container.h:55
Definition element.h:181
Definition tile.h:52
wlmtk_tile_style_t style
Definition tile.h:60
wlmtk_buffer_t buffer
Definition tile.h:57
wlmtk_container_t super_container
Definition tile.h:54
wlmtk_element_t * content_element_ptr
Definition tile.h:66
struct wlr_buffer * background_wlr_buffer_ptr
Definition tile.h:63
wlmtk_element_t * overlay_element_ptr
Definition tile.h:68
Definition style.h:73
Definition tile.h:40
uint64_t bezel_width
Definition tile.h:48
wlmtk_style_fill_t fill
Definition tile.h:42
uint64_t content_size
Definition tile.h:46
uint64_t size
Definition tile.h:44
void wlmtk_tile_set_overlay(wlmtk_tile_t *tile_ptr, wlmtk_element_t *element_ptr)
Definition tile.c:142
void wlmtk_tile_set_content(wlmtk_tile_t *tile_ptr, wlmtk_element_t *element_ptr)
Definition tile.c:108
void wlmtk_tile_fini(wlmtk_tile_t *tile_ptr)
Definition tile.c:74
const bs_test_case_t wlmtk_tile_test_cases[]
Definition tile.c:206
bool wlmtk_tile_init(wlmtk_tile_t *tile_ptr, const wlmtk_tile_style_t *style_ptr)
Definition tile.c:41
wlmtk_element_t * wlmtk_tile_element(wlmtk_tile_t *tile_ptr)
Definition tile.c:173
bool wlmtk_tile_set_background_buffer(wlmtk_tile_t *tile_ptr, struct wlr_buffer *wlr_buffer_ptr)
Definition tile.c:92