summaryrefslogtreecommitdiffstats
path: root/include/border.h
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-29 14:47:30 +0200
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-30 00:47:58 +0200
commit5a13cb0ed136906a4370235214601b0129548c49 (patch)
tree51dce6cdcb9bb1ffe27dcdc9a01ca9bda3a7c87a /include/border.h
parentAdd border <none|normal|toggle|pixel> config (diff)
downloadsway-5a13cb0ed136906a4370235214601b0129548c49.tar.gz
sway-5a13cb0ed136906a4370235214601b0129548c49.tar.zst
sway-5a13cb0ed136906a4370235214601b0129548c49.zip
Implement borders
The borders are implemented as a surface/buffer attached to each view which is sent to and rendered by wlc in the view_pre_render callback. All the drawing logic is handled in sway/border.c and all the logic for calculating the geometry of the border/view is handled in `update_geometry` in sway/layout.c (same place as gaps are calculated).
Diffstat (limited to 'include/border.h')
-rw-r--r--include/border.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/border.h b/include/border.h
new file mode 100644
index 00000000..63cd63d2
--- /dev/null
+++ b/include/border.h
@@ -0,0 +1,10 @@
1#ifndef _SWAY_BORDER_H
2#define _SWAY_BORDER_H
3#include <wlc/wlc.h>
4#include "container.h"
5
6void render_view_borders(wlc_handle view);
7void update_view_border(swayc_t *view);
8int get_font_text_height(const char *font);
9
10#endif