Struct egui::Layout [−][src]
pub struct Layout { /* fields omitted */ }Expand description
The layout of a Ui, e.g. “vertical & centered”.
ui.with_layout(egui::Layout::right_to_left(), |ui| {
ui.label("world!");
ui.label("Hello");
});Implementations
Top-down layout justifed so that buttons etc fill the full available width.
e.g. for adjusting the placement of something.
- in horizontal layout: left or right?
- in vertical layout: same as
Self::horizontal_align.
e.g. for when aligning text within a button.
e.g. for when aligning text within a button.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Layout
impl UnwindSafe for Layout
Blanket Implementations
Mutably borrows from an owned value. Read more