2014-10-25 19:43:37 +02:00
|
|
|
#ifndef _BM_COMMON_H_
|
|
|
|
#define _BM_COMMON_H_
|
|
|
|
|
|
|
|
#include <bemenu.h>
|
|
|
|
|
|
|
|
struct client {
|
|
|
|
enum bm_filter_mode filter_mode;
|
|
|
|
const char *colors[BM_COLOR_LAST];
|
|
|
|
const char *title;
|
2014-10-26 14:42:09 +01:00
|
|
|
const char *prefix;
|
2015-01-17 14:25:50 +01:00
|
|
|
const char *font;
|
2015-01-17 23:59:11 +01:00
|
|
|
uint32_t lines;
|
|
|
|
uint32_t selected;
|
|
|
|
uint32_t monitor;
|
|
|
|
bool bottom;
|
|
|
|
bool grab;
|
|
|
|
bool wrap;
|
2015-01-17 23:59:44 +01:00
|
|
|
bool scrollbar;
|
2014-10-25 19:43:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
void parse_args(struct client *client, int *argc, char **argv[]);
|
|
|
|
struct bm_menu* menu_with_options(struct client *client);
|
|
|
|
enum bm_run_result run_menu(struct bm_menu *menu);
|
|
|
|
|
|
|
|
#endif /* _BM_COMMON_H_ */
|
|
|
|
|
|
|
|
/* vim: set ts=8 sw=4 tw=0 :*/
|