pub struct TitleBar<'a> { /* private fields */ }Expand description
The title bar.
Implementations§
Source§impl<'a> TitleBar<'a>
impl<'a> TitleBar<'a>
Sourcepub fn full_screen(self, on: bool) -> Self
pub fn full_screen(self, on: bool) -> Self
Draws the bar as in full screen (true) or not, whatever the
window is (a preview); by default, as the window is.
Sourcepub fn publish(self, on: bool) -> Self
pub fn publish(self, on: bool) -> Self
Whether the bar publishes the window’s regions (off for a preview drawn inside a window).
Shows or hides a button (an auxiliary window without minimize).
Sourcepub fn show(
self,
ui: &mut Ui,
leading: impl FnOnce(&mut Ui),
trailing: impl FnOnce(&mut Ui),
) -> TitleBarOutput
pub fn show( self, ui: &mut Ui, leading: impl FnOnce(&mut Ui), trailing: impl FnOnce(&mut Ui), ) -> TitleBarOutput
Draws the bar across ui’s width (a top panel’s ui), with
leading items after the start edge (a logo, a menu) and
trailing items before the buttons (the application’s buttons);
both take their own clicks and are published as holes in the
caption. Publishes the window’s regions.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TitleBar<'a>
impl<'a> RefUnwindSafe for TitleBar<'a>
impl<'a> Send for TitleBar<'a>
impl<'a> Sync for TitleBar<'a>
impl<'a> Unpin for TitleBar<'a>
impl<'a> UnsafeUnpin for TitleBar<'a>
impl<'a> UnwindSafe for TitleBar<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more