pub struct Toolbar { /* private fields */ }Expand description
Items for the toolbar of the window it’s declared in: the bar across the top that shows the window’s title (the unified toolbar on macOS, GTK’s header bar, a command bar on WinUI, the page toolbar on KDE). Declare it anywhere in the window’s content; its items stay while it does.
Each child is one item, at the bar’s trailing end, in order. The
platform places them, spaces them and draws the bar; each item is as
big as its content. An item with nothing in it (a Show that shows
nothing) is hidden.
ⓘ
Column::new().children((
Toolbar::new().children((
Show::new(move || busy.get(), || Row::new().children((Spinner::new("Downloading"), "Downloading"))),
Text::new(move || status.get()),
)),
machine_list(),
))Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Toolbar
impl !Send for Toolbar
impl !Sync for Toolbar
impl !UnwindSafe for Toolbar
impl Forget for Toolbar
impl Freeze for Toolbar
impl Move for Toolbar
impl Unpin for Toolbar
impl UnsafeUnpin for Toolbar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more