prelude and transform macro

This commit is contained in:
2025-07-29 19:42:56 +02:00
parent 26eb1679f6
commit 71660418a1
6 changed files with 40 additions and 9 deletions
+2 -9
View File
@@ -1,11 +1,4 @@
use osui::{
elements::{div::Div, flex::FlexCol},
frontend::Rsx,
rsx,
state::use_state,
style::Transform,
Screen,
};
use osui::prelude::*;
fn main() -> std::io::Result<()> {
let screen = Screen::new();
@@ -39,7 +32,7 @@ fn test(inc: i32) -> Rsx {
rsx! {
@Transform::new().dimensions(40, 3);
Div {
@Transform::center().dimensions(8, 1);
@transform! { x: Center, y: Center, width: 5 };
Div {
%count
"{count}"