pub struct TopAppBarScope { /* private fields */ }Expand description
A TopAppBar and its builder.
Implementations§
Source§impl TopAppBarScope
impl TopAppBarScope
pub fn title(self, title: impl Into<String>) -> Self
Sourcepub fn hairline(self, show: bool) -> Self
pub fn hairline(self, show: bool) -> Self
Whether to draw the design system’s hairline separator under the bar.
When unset, the active design system decides (e.g. Cupertino, Fluent and GNOME draw one; Material 3 and Deepin do not; setting a custom border on the bar also suppresses it).
Sourcepub fn separator(self, show: bool) -> Self
pub fn separator(self, show: bool) -> Self
Alias for Self::hairline.
Source§impl TopAppBarScope
impl TopAppBarScope
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.
Trait Implementations§
Source§impl Drop for TopAppBarScope
impl Drop for TopAppBarScope
Auto Trait Implementations§
impl !RefUnwindSafe for TopAppBarScope
impl !Send for TopAppBarScope
impl !Sync for TopAppBarScope
impl !UnwindSafe for TopAppBarScope
impl Forget for TopAppBarScope
impl Freeze for TopAppBarScope
impl Move for TopAppBarScope
impl Unpin for TopAppBarScope
impl UnsafeUnpin for TopAppBarScope
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