]> git.ozlabs.org Git - petitboot/commit
ui/ncurses/widgets: Add widget focus offset query
authorJeremy Kerr <jk@ozlabs.org>
Tue, 19 Nov 2013 03:18:28 +0000 (14:18 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 22 Nov 2013 02:45:54 +0000 (10:45 +0800)
commite921d7bc8ed3980494518d22b0e754a6b3a603b1
treec5c35d0737b7be7b3c672c3a620793ae7e0567b5
parent4a624766022c2f2dd833f74751aab4b502ef6e06
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>
ui/ncurses/nc-widgets.c
ui/ncurses/nc-widgets.h