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