2014-10-25 17:43:37 +00:00
|
|
|
#ifndef _BM_COMMON_H_
|
|
|
|
#define _BM_COMMON_H_
|
|
|
|
|
|
|
|
#include <bemenu.h>
|
|
|
|
|
|
|
|
struct client {
|
|
|
|
enum bm_filter_mode filter_mode;
|
2015-01-18 00:07:30 +00:00
|
|
|
enum bm_scrollbar_mode scrollbar;
|
2014-10-25 17:43:37 +00:00
|
|
|
const char *colors[BM_COLOR_LAST];
|
|
|
|
const char *title;
|
2014-10-26 13:42:09 +00:00
|
|
|
const char *prefix;
|
2015-01-17 13:25:50 +00:00
|
|
|
const char *font;
|
2019-05-31 20:32:02 +00:00
|
|
|
uint32_t line_height;
|
2015-01-17 22:59:11 +00:00
|
|
|
uint32_t lines;
|
|
|
|
uint32_t selected;
|
|
|
|
uint32_t monitor;
|
|
|
|
bool bottom;
|
|
|
|
bool grab;
|
|
|
|
bool wrap;
|
2017-02-14 19:53:15 +00:00
|
|
|
bool ifne;
|
2019-03-25 21:21:17 +00:00
|
|
|
bool no_overlap;
|
2014-10-25 17:43:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void parse_args(struct client *client, int *argc, char **argv[]);
|
2017-02-14 19:50:15 +00:00
|
|
|
struct bm_menu* menu_with_options(const struct client *client);
|
2017-02-14 19:51:02 +00:00
|
|
|
enum bm_run_result run_menu(const struct client *client, struct bm_menu *menu, void (*item_cb)(struct bm_item *item, const char *text));
|
2014-10-25 17:43:37 +00:00
|
|
|
|
|
|
|
#endif /* _BM_COMMON_H_ */
|
|
|
|
|
|
|
|
/* vim: set ts=8 sw=4 tw=0 :*/
|