mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
feat: macros for horizontally/vertically expanding spacers
This commit is contained in:
parent
a0bba9f31d
commit
e18acf09fb
1 changed files with 22 additions and 0 deletions
22
src/ui/widgets.rs
Normal file
22
src/ui/widgets.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
#[macro_use]
|
||||
pub mod widgets {
|
||||
use iced::{
|
||||
widget::{column, row, Column},
|
||||
Length,
|
||||
};
|
||||
|
||||
macro_rules! vspacer {
|
||||
() => {
|
||||
column![].height(Length::Fill)
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! hspacer {
|
||||
() => {
|
||||
row![].width(Length::Fill)
|
||||
};
|
||||
}
|
||||
|
||||
pub(crate) use vspacer;
|
||||
pub(crate) use hspacer;
|
||||
}
|
Loading…
Add table
Reference in a new issue