spacer default

This commit is contained in:
griffi-gh 2023-11-23 01:22:33 +01:00
parent 3aa64143e3
commit 0106409c2e

View file

@ -4,6 +4,12 @@ use super::UiElement;
pub struct Spacer(f32);
impl Default for Spacer {
fn default() -> Self {
Self(5.)
}
}
impl UiElement for Spacer {
fn measure(&self, state: &StateRepo, layout: &LayoutInfo) -> Response {
Response {