forked from RepoMirrors/bemenu
93cde4831b
Text is displayed vertically centered in a line. If unspecified, or 0, the previous behaviour of making the height the size of the text, plus two pixels on either side, is used, so there will be no change in behaviour if this option is not used. Fixes https://github.com/Cloudef/bemenu/issues/44.
31 lines
770 B
C
31 lines
770 B
C
#ifndef _BM_COMMON_H_
|
|
#define _BM_COMMON_H_
|
|
|
|
#include <bemenu.h>
|
|
|
|
struct client {
|
|
enum bm_filter_mode filter_mode;
|
|
enum bm_scrollbar_mode scrollbar;
|
|
const char *colors[BM_COLOR_LAST];
|
|
const char *title;
|
|
const char *prefix;
|
|
const char *font;
|
|
uint32_t line_height;
|
|
uint32_t lines;
|
|
uint32_t selected;
|
|
uint32_t monitor;
|
|
bool bottom;
|
|
bool grab;
|
|
bool wrap;
|
|
bool ifne;
|
|
bool no_overlap;
|
|
};
|
|
|
|
void parse_args(struct client *client, int *argc, char **argv[]);
|
|
struct bm_menu* menu_with_options(const struct client *client);
|
|
enum bm_run_result run_menu(const struct client *client, struct bm_menu *menu, void (*item_cb)(struct bm_item *item, const char *text));
|
|
|
|
#endif /* _BM_COMMON_H_ */
|
|
|
|
/* vim: set ts=8 sw=4 tw=0 :*/
|