Skip to main content

hstack

Macro hstack 

Source
macro_rules! hstack {
    (gap: $gap:expr; $($child:expr),* $(,)?) => { ... };
    ($($child:expr),* $(,)?) => { ... };
}
Expand description

Create a horizontal stack with children

§Examples

use revue::prelude::*;

let view = hstack![
    Text::new("Left"),
    Text::new("Right"),
];

// With gap
let view = hstack![gap: 1;
    Text::new("A"),
    Text::new("B"),
];