summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-widgets.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-11-19 14:18:28 +1100
committerJeremy Kerr <jk@ozlabs.org>2013-11-22 10:45:54 +0800
commite921d7bc8ed3980494518d22b0e754a6b3a603b1 (patch)
treec5c35d0737b7be7b3c672c3a620793ae7e0567b5 /ui/ncurses/nc-widgets.h
parent4a624766022c2f2dd833f74751aab4b502ef6e06 (diff)
downloadtalos-petitboot-e921d7bc8ed3980494518d22b0e754a6b3a603b1.tar.gz
talos-petitboot-e921d7bc8ed3980494518d22b0e754a6b3a603b1.zip
ui/ncurses/widgets: Add widget focus offset query
When we have widgets that are larger than the screen, we'd like to scroll to the currently-focussed component of that widget. This change introduces a widget_focus_y function, which returns the y offset of the field's focus. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-widgets.h')
-rw-r--r--ui/ncurses/nc-widgets.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-widgets.h b/ui/ncurses/nc-widgets.h
index 53f1583..d598d5a 100644
--- a/ui/ncurses/nc-widgets.h
+++ b/ui/ncurses/nc-widgets.h
@@ -59,6 +59,7 @@ int widget_height(struct nc_widget *widget);
int widget_width(struct nc_widget *widget);
int widget_y(struct nc_widget *widget);
int widget_x(struct nc_widget *widget);
+int widget_focus_y(struct nc_widget *widget);
/* widgetset API */
typedef void (*widget_focus_cb)(struct nc_widget *widget, void *arg);
OpenPOWER on IntegriCloud