From ada6edc175eb89d318e55204368e2ba5dad07b1b Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 16 Jan 2015 01:59:09 +0200 Subject: Add X11 renderer. --- lib/internal.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'lib/internal.h') diff --git a/lib/internal.h b/lib/internal.h index e22c546..290a2f7 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -71,6 +71,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. @@ -253,6 +268,11 @@ struct bm_menu { */ uint32_t lines; + /** + * Current monitor. + */ + uint32_t monitor; + /** * Current filtering method in menu instance. */ @@ -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 */ -- cgit v1.2.3-70-g09d2