1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Add example where you can change layout direction and alignment

This commit is contained in:
Emil Ernerfeldt
2020-05-12 23:00:20 +02:00
parent 1dff2ad721
commit 8e0b1c8fca
5 changed files with 226 additions and 110 deletions

View File

@@ -50,6 +50,7 @@ impl Label {
/// If true, will word wrap to `ui.available_finite().width()`.
/// If false (default), will word wrap to `ui.available().width()`.
/// This only makes a difference for auto-sized parents.
pub fn auto_shrink(mut self) -> Self {
self.auto_shrink = true;
self