Header & view stack are now components, introduced Component trait
This commit is contained in:
parent
64fc8ba425
commit
4778d879f4
8 changed files with 184 additions and 100 deletions
7
src/ui/component.rs
Normal file
7
src/ui/component.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use gtk4 :: { * , prelude :: * } ;
|
||||
|
||||
|
||||
|
||||
pub trait Component < W : IsA <Widget> > {
|
||||
fn get_widget ( & self ) -> & W ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue