goyda 0.1.3

A Rust UI toolkit that compiles the same app to Windows, Android, and web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::components::Component;

pub struct Spacer {
    pub size: i32,
}

impl Spacer {
    /// A fixed-size, invisible gap - `size` pixels along whichever axis the
    /// enclosing [`Stack`](crate::components::Stack) lays out on.
    pub fn new(size: i32) -> Component {
        Component::Spacer(Self { size })
    }
}