diff options
author | rabite <rabite@posteo.de> | 2019-03-09 11:06:13 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-03-09 11:06:13 +0100 |
commit | 5d456539015876c1891bf0ac05b8f7dd3fbe8d57 (patch) | |
tree | 39e2e42cd28773eb9ac785d0430b51f72e6876d6 /src/tabview.rs | |
parent | 6e02ef6486b6660b69136e19c7086e8b2b3eb7ee (diff) |
use enum to allow multiple widget types in hbox
Diffstat (limited to 'src/tabview.rs')
-rw-r--r-- | src/tabview.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tabview.rs b/src/tabview.rs index faa212f..77abdb4 100644 --- a/src/tabview.rs +++ b/src/tabview.rs @@ -80,6 +80,9 @@ impl<T> Widget for TabView<T> where T: Widget, TabView<T>: Tabbable { fn get_core(&self) -> HResult<&WidgetCore> { Ok(&self.core) } + fn get_core_mut(&mut self) -> HResult<&mut WidgetCore> { + Ok(&mut self.core) + } fn render_header(&self) -> HResult<String> { let xsize = self.get_coordinates()?.xsize(); let header = self.active_tab_().render_header()?; |