wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
include
toolkit
dock.h
Go to the documentation of this file.
1
/* ========================================================================= */
21
#ifndef __WLMTK_DOCK_H__
22
#define __WLMTK_DOCK_H__
23
24
#include <libbase/libbase.h>
25
#include <libbase/plist.h>
26
#include <stdbool.h>
27
#define WLR_USE_UNSTABLE
28
#include <wlr/util/edges.h>
29
#undef WLR_USE_UNSTABLE
30
31
#include "
element.h
"
32
#include "
panel.h
"
33
#include "
style.h
"
34
#include "
tile.h
"
35
37
typedef
struct
_wlmtk_dock_t
wlmtk_dock_t
;
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
// __cplusplus
42
44
typedef
struct
{
46
enum
wlr_edges
edge
;
48
enum
wlr_edges
anchor
;
49
}
wlmtk_dock_positioning_t
;
50
52
struct
wlmtk_dock_style
{
54
struct
wlmtk_margin_style
margin
;
55
};
56
68
wlmtk_dock_t
*
wlmtk_dock_create
(
69
const
wlmtk_dock_positioning_t
*dock_positioning_ptr,
70
const
struct
wlmtk_dock_style
*style_ptr);
71
77
void
wlmtk_dock_destroy
(
wlmtk_dock_t
*dock_ptr);
78
88
bool
wlmtk_dock_set_style
(
89
wlmtk_dock_t
*dock_ptr,
90
const
struct
wlmtk_dock_style
*style_ptr,
91
const
struct
wlmtk_tile_style
*tile_style_ptr);
92
99
void
wlmtk_dock_add_tile
(
100
wlmtk_dock_t
*dock_ptr,
101
wlmtk_tile_t
*tile_ptr);
102
109
void
wlmtk_dock_remove_tile
(
110
wlmtk_dock_t
*dock_ptr,
111
wlmtk_tile_t
*tile_ptr);
112
114
wlmtk_panel_t
*
wlmtk_dock_panel
(
wlmtk_dock_t
*dock_ptr);
115
117
wlmtk_element_t
*
wlmtk_dock_element
(
wlmtk_dock_t
*dock_ptr);
118
120
extern
const
bspl_desc_t
wlmtk_dock_style_desc
[];
121
123
extern
const
bs_test_set_t
wlmtk_dock_test_set
;
124
125
#ifdef __cplusplus
126
}
// extern "C"
127
#endif
// __cplusplus
128
129
#endif
/* __WLMTK_DOCK_H__ */
130
/* == End of dock.h ======================================================== */
element.h
wlmtk_element_t
struct _wlmtk_element_t wlmtk_element_t
Definition
element.h:37
wlmtk_dock_panel
wlmtk_panel_t * wlmtk_dock_panel(wlmtk_dock_t *dock_ptr)
Definition
dock.c:216
wlmtk_dock_add_tile
void wlmtk_dock_add_tile(wlmtk_dock_t *dock_ptr, wlmtk_tile_t *tile_ptr)
Definition
dock.c:172
wlmtk_dock_destroy
void wlmtk_dock_destroy(wlmtk_dock_t *dock_ptr)
Definition
dock.c:139
wlmtk_dock_test_set
const bs_test_set_t wlmtk_dock_test_set
Definition
dock.c:377
wlmtk_dock_element
wlmtk_element_t * wlmtk_dock_element(wlmtk_dock_t *dock_ptr)
Definition
dock.c:222
wlmtk_dock_t
struct _wlmtk_dock_t wlmtk_dock_t
Definition
dock.h:37
wlmtk_dock_set_style
bool wlmtk_dock_set_style(wlmtk_dock_t *dock_ptr, const struct wlmtk_dock_style *style_ptr, const struct wlmtk_tile_style *tile_style_ptr)
Definition
dock.c:155
wlmtk_dock_style_desc
const bspl_desc_t wlmtk_dock_style_desc[]
Definition
dock.c:75
wlmtk_dock_remove_tile
void wlmtk_dock_remove_tile(wlmtk_dock_t *dock_ptr, wlmtk_tile_t *tile_ptr)
Definition
dock.c:198
wlmtk_dock_create
wlmtk_dock_t * wlmtk_dock_create(const wlmtk_dock_positioning_t *dock_positioning_ptr, const struct wlmtk_dock_style *style_ptr)
Definition
dock.c:95
panel.h
wlmtk_panel_t
struct _wlmtk_panel_t wlmtk_panel_t
Definition
panel.h:32
_wlmtk_dock_t
Definition
dock.c:36
wlmtk_dock_positioning_t
Definition
dock.h:44
wlmtk_dock_positioning_t::anchor
enum wlr_edges anchor
Definition
dock.h:48
wlmtk_dock_positioning_t::edge
enum wlr_edges edge
Definition
dock.h:46
wlmtk_dock_style
Definition
dock.h:52
wlmtk_dock_style::margin
struct wlmtk_margin_style margin
Definition
dock.h:54
wlmtk_margin_style
Definition
style.h:116
wlmtk_tile_style
Definition
tile.h:44
style.h
tile.h
wlmtk_tile_t
struct _wlmtk_tile_t wlmtk_tile_t
Definition
tile.h:25
Generated by
1.17.0