41 lines
754 B
C
41 lines
754 B
C
#if !defined(HIKARI_BORDER_H)
|
|
#define HIKARI_BORDER_H
|
|
|
|
#include <wlr/types/wlr_box.h>
|
|
|
|
#include <hikari/output.h>
|
|
|
|
struct hikari_render_data;
|
|
|
|
enum hikari_border_state {
|
|
HIKARI_BORDER_NONE,
|
|
HIKARI_BORDER_INACTIVE,
|
|
HIKARI_BORDER_ACTIVE
|
|
};
|
|
|
|
struct hikari_border {
|
|
enum hikari_border_state state;
|
|
|
|
struct wlr_box geometry;
|
|
struct wlr_box top;
|
|
struct wlr_box bottom;
|
|
struct wlr_box left;
|
|
struct wlr_box right;
|
|
};
|
|
|
|
static inline struct wlr_box *
|
|
hikari_border_geometry(struct hikari_border *border)
|
|
{
|
|
return &border->geometry;
|
|
}
|
|
|
|
void
|
|
hikari_border_render(
|
|
struct hikari_border *border, struct hikari_render_data *render_data);
|
|
|
|
void
|
|
hikari_border_refresh_geometry(
|
|
struct hikari_border *border, struct wlr_box *geometry);
|
|
|
|
#endif
|