linux: refactor window structure, support move callback

This commit is contained in:
Dzmitry Malyshau
2024-02-01 21:43:28 -08:00
parent c9ec337034
commit ce84a2a671
3 changed files with 171 additions and 116 deletions
+4 -1
View File
@@ -9,9 +9,12 @@ impl Render for HelloWorld {
div()
.flex()
.bg(rgb(0x2e7d32))
.size_full()
.size(Length::Definite(Pixels(300.0).into()))
.justify_center()
.items_center()
.shadow_lg()
.border()
.border_color(rgb(0x0000ff))
.text_xl()
.text_color(rgb(0xffffff))
.child(format!("Hello, {}!", &self.text))