summaryrefslogtreecommitdiff
path: root/include/sway/old/border.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2017-11-18 11:22:02 -0500
committerDrew DeVault <[email protected]>2017-11-18 11:22:02 -0500
commit733993a651c71f7e2198d505960d6bbd31e0e107 (patch)
treee51732c5872b624e73355f9e5b3f762101f3cd0d /include/sway/old/border.h
parent0c8491f7d0c735299a25f0ab929f5d1e0866b929 (diff)
Move everything to sway/old/
Diffstat (limited to 'include/sway/old/border.h')
-rw-r--r--include/sway/old/border.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/sway/old/border.h b/include/sway/old/border.h
new file mode 100644
index 00000000..c30c9da3
--- /dev/null
+++ b/include/sway/old/border.h
@@ -0,0 +1,28 @@
+#ifndef _SWAY_BORDER_H
+#define _SWAY_BORDER_H
+#include <wlc/wlc.h>
+#include "container.h"
+
+/**
+ * Border pixel buffer and corresponding geometry.
+ */
+struct border {
+ unsigned char *buffer;
+ struct wlc_geometry geometry;
+};
+
+/**
+ * Clear border buffer.
+ */
+void border_clear(struct border *border);
+
+/**
+ * Recursively update all of the borders within a container.
+ */
+void update_container_border(swayc_t *container);
+
+void render_view_borders(wlc_handle view);
+int get_font_text_height(const char *font);
+bool should_hide_top_border(swayc_t *con, double y);
+
+#endif