]> git.ozlabs.org Git - petitboot/commitdiff
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)
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>

No differences found