diff --git a/src/views/linear_layout.rs b/src/views/linear_layout.rs index 9788c92..95771ca 100644 --- a/src/views/linear_layout.rs +++ b/src/views/linear_layout.rs @@ -145,6 +145,11 @@ impl LinearLayout { 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 fn invalidate(&mut self) { self.cache = None;