pub struct TopAppBarBuilder { /* private fields */ }Expand description
Configuration handle returned by top_app_bar.
Implementations§
Source§impl TopAppBarBuilder
impl TopAppBarBuilder
Append a trailing action item using a shared callback.
Replace the trailing actions with shared callbacks.
Sourcepub fn window_control_minimize(&self) -> Self
pub fn window_control_minimize(&self) -> Self
Appends a desktop minimize window control button.
Sourcepub fn window_control_toggle_maximize(&self) -> Self
pub fn window_control_toggle_maximize(&self) -> Self
Appends a desktop maximize or restore window control button.
Sourcepub fn window_control_close(&self) -> Self
pub fn window_control_close(&self) -> Self
Appends a desktop close window control button.
Source§impl TopAppBarBuilder
impl TopAppBarBuilder
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn container_color(&self, value: Color) -> Self
pub fn container_color(&self, value: Color) -> Self
Configure container_color before this component executes.
Sourcepub fn container_color_optional(&self, value: Option<Color>) -> Self
pub fn container_color_optional(&self, value: Option<Color>) -> Self
Configure container_color before this component executes.
Sourcepub fn content_color(&self, value: Color) -> Self
pub fn content_color(&self, value: Color) -> Self
Configure content_color before this component executes.
Sourcepub fn content_color_optional(&self, value: Option<Color>) -> Self
pub fn content_color_optional(&self, value: Option<Color>) -> Self
Configure content_color before this component executes.
Sourcepub fn elevation_optional(&self, value: Option<Dp>) -> Self
pub fn elevation_optional(&self, value: Option<Dp>) -> Self
Configure elevation before this component executes.
Sourcepub fn content_padding(&self, value: Padding) -> Self
pub fn content_padding(&self, value: Padding) -> Self
Configure content_padding before this component executes.
Sourcepub fn content_padding_optional(&self, value: Option<Padding>) -> Self
pub fn content_padding_optional(&self, value: Option<Padding>) -> Self
Configure content_padding before this component executes.
Sourcepub fn title(&self, value: impl Into<String>) -> Self
pub fn title(&self, value: impl Into<String>) -> Self
Configure title before this component executes.
Sourcepub fn title_optional(&self, value: Option<String>) -> Self
pub fn title_optional(&self, value: Option<String>) -> Self
Configure title before this component executes.
Sourcepub fn title_content<F, Output>(&self, value: F) -> Self
pub fn title_content<F, Output>(&self, value: F) -> Self
Configure title_content before this component executes.
Configure title_content before this component executes.
Sourcepub fn title_content_optional(&self, value: Option<RenderSlot>) -> Self
pub fn title_content_optional(&self, value: Option<RenderSlot>) -> Self
Configure title_content before this component executes.
Sourcepub fn title_area_modifier(&self, value: Modifier) -> Self
pub fn title_area_modifier(&self, value: Modifier) -> Self
Configure title_area_modifier before this component executes.
Sourcepub fn title_area_modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn title_area_modifier_optional(&self, value: Option<Modifier>) -> Self
Configure title_area_modifier before this component executes.
Sourcepub fn window_chrome(&self, value: bool) -> Self
pub fn window_chrome(&self, value: bool) -> Self
Configure window_chrome before this component executes.
Sourcepub fn window_chrome_optional(&self, value: Option<bool>) -> Self
pub fn window_chrome_optional(&self, value: Option<bool>) -> Self
Configure window_chrome before this component executes.
Configure navigation_icon before this component executes.
Configure navigation_icon before this component executes.
Configure navigation_icon before this component executes.
Configure navigation_icon_color before this component executes.
Configure navigation_icon_color before this component executes.
Sourcepub fn action_icon_color(&self, value: Color) -> Self
pub fn action_icon_color(&self, value: Color) -> Self
Configure action_icon_color before this component executes.
Sourcepub fn action_icon_color_optional(&self, value: Option<Color>) -> Self
pub fn action_icon_color_optional(&self, value: Option<Color>) -> Self
Configure action_icon_color before this component executes.
Sourcepub fn title_inset(&self, value: Dp) -> Self
pub fn title_inset(&self, value: Dp) -> Self
Configure title_inset before this component executes.
Sourcepub fn title_inset_optional(&self, value: Option<Dp>) -> Self
pub fn title_inset_optional(&self, value: Option<Dp>) -> Self
Configure title_inset before this component executes.
Sourcepub fn actions_spacing(&self, value: Dp) -> Self
pub fn actions_spacing(&self, value: Dp) -> Self
Configure actions_spacing before this component executes.
Sourcepub fn actions_spacing_optional(&self, value: Option<Dp>) -> Self
pub fn actions_spacing_optional(&self, value: Option<Dp>) -> Self
Configure actions_spacing before this component executes.
Sourcepub fn variant(&self, value: TopAppBarVariant) -> Self
pub fn variant(&self, value: TopAppBarVariant) -> Self
Configure variant before this component executes.
Sourcepub fn variant_optional(&self, value: Option<TopAppBarVariant>) -> Self
pub fn variant_optional(&self, value: Option<TopAppBarVariant>) -> Self
Configure variant before this component executes.
Sourcepub fn subtitle(&self, value: impl Into<String>) -> Self
pub fn subtitle(&self, value: impl Into<String>) -> Self
Configure subtitle before this component executes.
Sourcepub fn subtitle_optional(&self, value: Option<String>) -> Self
pub fn subtitle_optional(&self, value: Option<String>) -> Self
Configure subtitle before this component executes.
Sourcepub fn title_alignment(&self, value: AppBarTitleAlignment) -> Self
pub fn title_alignment(&self, value: AppBarTitleAlignment) -> Self
Configure title_alignment before this component executes.
Sourcepub fn title_alignment_optional(
&self,
value: Option<AppBarTitleAlignment>,
) -> Self
pub fn title_alignment_optional( &self, value: Option<AppBarTitleAlignment>, ) -> Self
Configure title_alignment before this component executes.
Sourcepub fn scroll_state(&self, value: State<AppBarScrollState>) -> Self
pub fn scroll_state(&self, value: State<AppBarScrollState>) -> Self
Configure scroll_state before this component executes.
Sourcepub fn scroll_state_optional(
&self,
value: Option<State<AppBarScrollState>>,
) -> Self
pub fn scroll_state_optional( &self, value: Option<State<AppBarScrollState>>, ) -> Self
Configure scroll_state before this component executes.
Sourcepub fn scrolled_container_color(&self, value: Color) -> Self
pub fn scrolled_container_color(&self, value: Color) -> Self
Configure scrolled_container_color before this component executes.
Sourcepub fn scrolled_container_color_optional(&self, value: Option<Color>) -> Self
pub fn scrolled_container_color_optional(&self, value: Option<Color>) -> Self
Configure scrolled_container_color before this component executes.
Auto Trait Implementations§
impl Freeze for TopAppBarBuilder
impl RefUnwindSafe for TopAppBarBuilder
impl Send for TopAppBarBuilder
impl Sync for TopAppBarBuilder
impl Unpin for TopAppBarBuilder
impl UnsafeUnpin for TopAppBarBuilder
impl UnwindSafe for TopAppBarBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.