Introduce sorting structs
This commit is contained in:
parent
04755fabb7
commit
e2330cae50
5 changed files with 106 additions and 71 deletions
|
|
@ -72,6 +72,16 @@ macro_rules ! icon { ( $ icon_name : expr ) => {
|
|||
gtk4 :: Image :: from_icon_name ( $ icon_name )
|
||||
} }
|
||||
|
||||
macro_rules ! scrolled_window { (
|
||||
$ ( @ propagate_natural_height : $ propagate_natural_height : expr , ) ?
|
||||
$ child : expr $ (,) ?
|
||||
) => { {
|
||||
let widget = gtk4 :: ScrolledWindow :: new () ;
|
||||
$ ( widget . set_propagate_natural_height ( $ propagate_natural_height ) ; ) ?
|
||||
widget . set_child ( Some ( & $ child ) ) ;
|
||||
widget
|
||||
} } }
|
||||
|
||||
macro_rules ! vertically_filling { ( $ child : expr ) => {
|
||||
g_box ! (
|
||||
@ orientation : gtk4 :: Orientation :: Vertical ,
|
||||
|
|
@ -93,5 +103,6 @@ pub (crate) use {
|
|||
split_button ,
|
||||
popover ,
|
||||
icon ,
|
||||
scrolled_window ,
|
||||
vertically_filling ,
|
||||
} ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue