2014-10-25 17:43:37 +00:00
|
|
|
#ifndef _BM_COMMON_H_
|
|
|
|
#define _BM_COMMON_H_
|
|
|
|
|
|
|
|
#include <bemenu.h>
|
2020-02-07 21:11:42 +00:00
|
|
|
#include <stddef.h>
|
2014-10-25 17:43:37 +00:00
|
|
|
|
|
|
|
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;
|
2020-11-12 17:20:21 +00:00
|
|
|
const char *initial_filter;
|
2019-05-31 20:32:02 +00:00
|
|
|
uint32_t line_height;
|
2021-08-24 17:06:51 +00:00
|
|
|
uint32_t cursor_height;
|
2015-01-17 22:59:11 +00:00
|
|
|
uint32_t lines;
|
|
|
|
uint32_t selected;
|
|
|
|
uint32_t monitor;
|
2021-10-17 06:22:24 +00:00
|
|
|
uint32_t hmargin_size;
|
2021-12-26 16:38:11 +00:00
|
|
|
float width_factor;
|
2015-01-17 22:59:11 +00:00
|
|
|
bool bottom;
|
2021-08-14 10:07:22 +00:00
|
|
|
bool center;
|
2015-01-17 22:59:11 +00:00
|
|
|
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;
|
2021-08-27 21:15:57 +00:00
|
|
|
bool no_spacing;
|
2020-02-08 11:21:36 +00:00
|
|
|
bool force_fork, fork;
|
2020-02-22 15:35:47 +00:00
|
|
|
bool no_exec;
|
2021-02-05 04:12:48 +00:00
|
|
|
bool password;
|
2021-02-05 07:50:58 +00:00
|
|
|
char *monitor_name;
|
2014-10-25 17:43:37 +00:00
|
|
|
};
|
|
|
|
|
2020-02-07 21:11:42 +00:00
|
|
|
char* cstrcopy(const char *str, size_t size);
|
|
|
|
char** tokenize_quoted_to_argv(const char *str, char *argv0, int *out_argc);
|
2014-10-25 17:43:37 +00:00
|
|
|
void parse_args(struct client *client, int *argc, char **argv[]);
|
2020-02-08 11:21:36 +00:00
|
|
|
struct bm_menu* menu_with_options(struct client *client);
|
|
|
|
enum bm_run_result run_menu(const struct client *client, struct bm_menu *menu, void (*item_cb)(const struct client *client, struct bm_item *item));
|
2014-10-25 17:43:37 +00:00
|
|
|
|
|
|
|
#endif /* _BM_COMMON_H_ */
|
|
|
|
|
|
|
|
/* vim: set ts=8 sw=4 tw=0 :*/
|