pub enum ButtonGroupOverflow {
None,
Scroll,
BottomSheet,
Popup,
}Expand description
How the group handles members that do not fit — the ported subset of
M3EButtonGroupOverflow (m3e_toggle_button_group_enums.dart:30). See the
module docs’ Overflow section for the one unported mode
(experimentalPaging).
Variants§
None
Do not handle overflow at all — content wider than the box overflows it.
Scroll
Clip to the box and pan along the main axis when the content does not fit. The reference’s default.
BottomSheet
Show only the members that fit plus a trailing overflow trigger,
reporting the first hidden index through
ButtonGroupView::on_overflow — M3EButtonGroupOverflow.menu with
M3EButtonGroupOverflowMenuStyle.bottomSheet. Presentation is the
app’s own (see crate::show_bottom_sheet).
Popup
The same split and trigger as Self::BottomSheet, presented instead
as an anchored popup menu via ButtonGroupView::overflow_menu —
M3EButtonGroupOverflow.menu with
M3EButtonGroupOverflowMenuStyle.popup.
Trait Implementations§
Source§impl Clone for ButtonGroupOverflow
impl Clone for ButtonGroupOverflow
impl Copy for ButtonGroupOverflow
Source§impl Debug for ButtonGroupOverflow
impl Debug for ButtonGroupOverflow
Source§impl Default for ButtonGroupOverflow
impl Default for ButtonGroupOverflow
impl Eq for ButtonGroupOverflow
Source§impl PartialEq for ButtonGroupOverflow
impl PartialEq for ButtonGroupOverflow
impl StructuralPartialEq for ButtonGroupOverflow
Auto Trait Implementations§
impl Freeze for ButtonGroupOverflow
impl RefUnwindSafe for ButtonGroupOverflow
impl Send for ButtonGroupOverflow
impl Sync for ButtonGroupOverflow
impl Unpin for ButtonGroupOverflow
impl UnsafeUnpin for ButtonGroupOverflow
impl UnwindSafe for ButtonGroupOverflow
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<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.