Modular status panel for X11 and Wayland, inspired by https://github.com/jaagr/polybar
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
511 B
17 lines
511 B
#pragma once |
|
|
|
#include <stdbool.h> |
|
|
|
#include "bar.h" |
|
|
|
struct backend { |
|
bool (*setup)(struct bar *bar); |
|
void (*cleanup)(struct bar *bar); |
|
void (*loop)(struct bar *bar, |
|
void (*expose)(const struct bar *bar), |
|
void (*on_mouse)(struct bar *bar, enum mouse_event event, |
|
int x, int y)); |
|
void (*commit)(const struct bar *bar); |
|
void (*refresh)(const struct bar *bar); |
|
void (*set_cursor)(struct bar *bar, const char *cursor); |
|
};
|
|
|