aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-22 08:27:42 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-22 08:27:42 +1000
commitf6c3682c05bce05f00b13b8f469b52923ecd8ddb (patch)
tree57a109a0bef2b14ecd24a39469d52c70f6933987 /include/sway/tree/container.h
parentImplement stacked layout (diff)
downloadsway-f6c3682c05bce05f00b13b8f469b52923ecd8ddb.tar.gz
sway-f6c3682c05bce05f00b13b8f469b52923ecd8ddb.tar.zst
sway-f6c3682c05bce05f00b13b8f469b52923ecd8ddb.zip
Use constants for titlebar dimensions
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 598a4f3d..64e8634a 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -11,6 +11,12 @@ extern struct sway_container root_container;
11struct sway_view; 11struct sway_view;
12struct sway_seat; 12struct sway_seat;
13 13
14#define TITLEBAR_BORDER_THICKNESS 1
15
16// Padding includes titlebar border
17#define TITLEBAR_H_PADDING 3
18#define TITLEBAR_V_PADDING 4
19
14/** 20/**
15 * Different kinds of containers. 21 * Different kinds of containers.
16 * 22 *
@@ -212,4 +218,9 @@ void container_calculate_title_height(struct sway_container *container);
212 218
213void container_notify_child_title_changed(struct sway_container *container); 219void container_notify_child_title_changed(struct sway_container *container);
214 220
221/**
222 * Return the height of a regular title bar.
223 */
224size_t container_titlebar_height();
225
215#endif 226#endif