1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-09-24 13:01:30 +02:00
bemenu/client/common/common.h

43 lines
1.1 KiB
C
Raw Normal View History

2014-10-25 19:43:37 +02:00
#ifndef _BM_COMMON_H_
#define _BM_COMMON_H_
#include <bemenu.h>
#include <stddef.h>
2014-10-25 19:43:37 +02:00
struct client {
enum bm_filter_mode filter_mode;
2015-01-18 01:07:30 +01:00
enum bm_scrollbar_mode scrollbar;
2014-10-25 19:43:37 +02:00
const char *colors[BM_COLOR_LAST];
const char *title;
const char *prefix;
const char *font;
2020-11-12 18:20:21 +01:00
const char *initial_filter;
uint32_t line_height;
uint32_t cursor_height;
2015-01-17 23:59:11 +01:00
uint32_t lines;
uint32_t selected;
uint32_t monitor;
uint32_t hmargin_size;
2015-01-17 23:59:11 +01:00
bool bottom;
2021-08-14 12:07:22 +02:00
bool center;
2015-01-17 23:59:11 +01:00
bool grab;
bool wrap;
2017-02-14 20:53:15 +01:00
bool ifne;
bool no_overlap;
bool no_spacing;
bool force_fork, fork;
2020-02-22 16:35:47 +01:00
bool no_exec;
bool password;
char *monitor_name;
2014-10-25 19:43:37 +02: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 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(const struct client *client, struct bm_menu *menu, void (*item_cb)(const struct client *client, struct bm_item *item));
2014-10-25 19:43:37 +02:00
#endif /* _BM_COMMON_H_ */
/* vim: set ts=8 sw=4 tw=0 :*/