mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
spacer default
This commit is contained in:
parent
711942567f
commit
3d8803f465
|
@ -4,6 +4,12 @@ use super::UiElement;
|
||||||
|
|
||||||
pub struct Spacer(f32);
|
pub struct Spacer(f32);
|
||||||
|
|
||||||
|
impl Default for Spacer {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self(5.)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl UiElement for Spacer {
|
impl UiElement for Spacer {
|
||||||
fn measure(&self, state: &StateRepo, layout: &LayoutInfo) -> Response {
|
fn measure(&self, state: &StateRepo, layout: &LayoutInfo) -> Response {
|
||||||
Response {
|
Response {
|
||||||
|
|
Loading…
Reference in a new issue