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-01-28 13:39:51 +00:00
|
|
|
void render_view_borders(wlc_handle view);
|
2016-03-14 01:10:46 +00:00
|
|
|
void update_view_border(swayc_t *view);
|
2016-03-29 22:13:39 +00:00
|
|
|
void map_update_view_border(swayc_t *view, void *data);
|
2016-03-29 12:47:30 +00:00
|
|
|
int get_font_text_height(const char *font);
|
2016-01-28 13:39:51 +00:00
|
|
|
|
|
|
|
#endif
|