aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-05-22 08:27:42 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-05-22 08:27:42 +1000
commit368fe6a50d4f0cacd4614ec8696d02f999656987 (patch)
tree57a109a0bef2b14ecd24a39469d52c70f6933987 /include
parentf87d00b3cfb3eafa4efecd5ebd01db185c222036 (diff)
Use constants for titlebar dimensions
Diffstat (limited to 'include')
-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;
struct sway_view;
struct sway_seat;
+#define TITLEBAR_BORDER_THICKNESS 1
+
+// Padding includes titlebar border
+#define TITLEBAR_H_PADDING 3
+#define TITLEBAR_V_PADDING 4
+
/**
* Different kinds of containers.
*
@@ -212,4 +218,9 @@ void container_calculate_title_height(struct sway_container *container);
void container_notify_child_title_changed(struct sway_container *container);
+/**
+ * Return the height of a regular title bar.
+ */
+size_t container_titlebar_height();
+
#endif