Add LinearLayout.get_focus_index

This commit is contained in:
Tymoteusz Jankowski 2018-02-08 14:44:23 +01:00
parent 22e2360aa1
commit 56fe7ab0df

View File

@ -145,6 +145,11 @@ impl LinearLayout {
self.invalidate(); self.invalidate();
} }
/// Returns index of focused inner view
pub fn get_focus_index(&self) -> usize {
self.focus
}
// Invalidate the view, to request a layout next time // Invalidate the view, to request a layout next time
fn invalidate(&mut self) { fn invalidate(&mut self) {
self.cache = None; self.cache = None;