diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-16 01:59:09 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-16 01:59:09 +0200 |
commit | ada6edc175eb89d318e55204368e2ba5dad07b1b (patch) | |
tree | 035ff1c1db386e48135705b5c663060248b3fa66 /lib/internal.h | |
parent | 0cd1c991d20c5c10190e520071691e849541f619 (diff) | |
download | bemenu-ada6edc175eb89d318e55204368e2ba5dad07b1b.tar.gz bemenu-ada6edc175eb89d318e55204368e2ba5dad07b1b.tar.bz2 bemenu-ada6edc175eb89d318e55204368e2ba5dad07b1b.zip |
Add X11 renderer.
Diffstat (limited to 'lib/internal.h')
-rw-r--r-- | lib/internal.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/internal.h b/lib/internal.h index e22c546..290a2f7 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -72,6 +72,21 @@ struct render_api { void (*render)(const struct bm_menu *menu); /** + * Set menu to appear from bottom of the screen. + */ + void (*set_bottom)(const struct bm_menu *menu, bool bottom); + + /** + * Set monitor indeax where menu will appear + */ + void (*set_monitor)(const struct bm_menu *menu, uint32_t monitor); + + /** + * Grab/Ungrab keyboard + */ + void (*grab_keyboard)(const struct bm_menu *menu, bool grab); + + /** * Version of the plugin. * Should match BM_PLUGIN_VERSION or failure. */ @@ -254,6 +269,11 @@ struct bm_menu { uint32_t lines; /** + * Current monitor. + */ + uint32_t monitor; + + /** * Current filtering method in menu instance. */ enum bm_filter_mode filter_mode; @@ -262,6 +282,16 @@ struct bm_menu { * Should selection be wrapped? */ bool wrap; + + /** + * Is menu shown from bottom? + */ + bool bottom; + + /** + * Is menu grabbed? + */ + bool grabbed; }; /* library.c */ |