2016-03-29 12:47:30 +00:00
|
|
|
#ifndef _SWAY_BORDER_H
|
|
|
|
#define _SWAY_BORDER_H
|
2016-01-28 13:39:51 +00:00
|
|
|
#include <wlc/wlc.h>
|
2016-03-14 01:10:46 +00:00
|
|
|
#include "container.h"
|
2016-01-28 13:39:51 +00:00
|
|
|
|
2016-04-27 09:22:29 +00:00
|
|
|
/**
|
|
|
|
* Border pixel buffer and corresponding geometry.
|
|
|
|
*/
|
2016-04-19 22:22:15 +00:00
|
|
|
struct border {
|
|
|
|
unsigned char *buffer;
|
|
|
|
struct wlc_geometry geometry;
|
|
|
|
};
|
|
|
|
|
2016-04-27 09:22:29 +00:00
|
|
|
/**
|
|
|
|
* Clear border buffer.
|
|
|
|
*/
|
|
|
|
void border_clear(struct border *border);
|
|
|
|
|
2016-07-31 22:10:33 +00:00
|
|
|
/**
|
|
|
|
* Recursively update all of the borders within a container.
|
|
|
|
*/
|
|
|
|
void update_container_border(swayc_t *container);
|
|
|
|
|
2016-01-28 13:39:51 +00:00
|
|
|
void render_view_borders(wlc_handle view);
|
2016-03-29 12:47:30 +00:00
|
|
|
int get_font_text_height(const char *font);
|
2016-07-30 13:12:34 +00:00
|
|
|
bool should_hide_top_border(swayc_t *con, double y);
|
2016-01-28 13:39:51 +00:00
|
|
|
|
|
|
|
#endif
|