From 2a8c6dddb182ddebcde7d113edfb82204e0eec2b Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 28 Feb 2024 16:54:14 +0100 Subject: [PATCH] update readme --- .assets/exemplaris.png | Bin 0 -> 7020 bytes README.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .assets/exemplaris.png diff --git a/.assets/exemplaris.png b/.assets/exemplaris.png new file mode 100644 index 0000000000000000000000000000000000000000..910ca533bec55100fe4930ad7f4a203582657601 GIT binary patch literal 7020 zcmeHLdr*^C7XK()A63-Wii${3tae386{3Pb6j7jvRO^FRh=PEa0BR&WLI_(Qs0aZp zs0hiZAiA1F2qf}IaD4$HqzRfB9*Ghl#^jTC0_4HosB7Du*_r)kXSOr`k;(U+d(QdJ z`JHoq_s%`@<92V0FRZ?RAjrbk$7?49ncG5;*~@8DfCN2t`Y8A_!|(L=gcz;XO7QZR z=uQ5cAgG)&L%;uX@IL*pPY@o0zB*?5nMtD%Nf5Ni%-3tvuB0%yt0Q}vWOw?jZrgLY zx!+gZ^YroYu|D~0pyjkPGjy|#H}HCs1Q%!E-d?)2L2EZ=adF*3lxMw}VVYse$vtiR z;iljXPK2mue}A!1=13}3H==XPE*4ig%LgB*#7qQnnQz{*m`WTwu*Ced>A5R-EjBd< z$_39QbZm4sW~OZ(cpeE|xY4wnKU!+$WfD*~ywfkKkj}P6#Q6b{kQM#TY*)cMjh#VL z<^TiV$Pb2*pB9(p|Cb=RCdmwM6A=g-n?0GM^Wf2B-}V6S7b_~nU#1y{Y2?5qEf>tZ zT$6}~&rtUrE%V}3({x@M*PqS2oInX?NyF;zQ3f(kmUOt@_sHdD?}G$S7j7&$&JjBf z*y+QUDB0O}0uC_k7Ho9JPnn~936IXuPpc2~siE7c=So!5rp#$6`j74fm5=88_O)DI zhuG5@Mljy#ji@^|7~Gwyes*gwQ|QP|GW;Rl?t~v$QIMcAa?#NjM}KNyn524E)$DOU-?x zIGSA0EY%LY?W&z^ALqD%e7A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-O7-C^f z&46PHkV{%=3CgNUj<{w7kP_??yrbVG)HMJU?MrS&)smW#yJcA(e07y~bF!#23{Mrs zaFLS1Dv=uv=TFRjEySx5CY;0`v>RIM_ONa@7!EPUJH+=cMVH zFsq=&GLvOK4TA0!%(R7|jSEfBKR$*&gP>nlr-Lic$WP)=n0#u8Pt)*;3O>?f->bF& zlwUt!#}~qA8c8!YKtmaiq^vNpXxh;E$&}Qw2J(brWIF_-XvVTKuqHNell8K?;X+0FO}lcpMcB__+)A?ior`V@VCfQRpVK*pWj z=L0-QdR6^+M}y4xcpU +

Example

+ + +
Container::default()
+  .with_size(size!(100%, 50%))
+  .with_align(Alignment::Center)
+  .with_padding(5.)
+  .with_gap(10.)
+  .with_corner_radius(10.)
+  .with_background(color::WHITE)
+  .with_children(|ui| {
+    Text::default()
+      .with_text("Hello, world")
+      .with_text_size(100)
+      .with_color(color::BLACK)
+      .add_child(ui);
+    Container::default()
+      .with_padding((10., 20.))
+      .with_corner_radius((2.5, 30., 2.5, 2.5))
+      .with_background(color::DARK_RED)
+      .with_children(|ui| {
+        Text::default()
+          .with_text("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")
+          .with_text_size(24)
+          .add_child(ui);
+      })
+      .add_child(ui);
+  })
+  .add_root(&mut hui, resolution);
+

Backends

Latest stable release: