FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialBottomSheetHost

    struct · ferroui-themes-material · v0.5.0

    struct MaterialBottomSheetHost
    

    A modal sheet placed as the last child of the application's overlay Grid. Its Content is the sheet body. State is the requested semantic state; Self::current_state changes when the transition settles.

    The host owns scrim input, sheet/scroll-content pointer capture, Escape/back navigation, focus containment/restoration and completion events. Supply the platform's insets through SafeInsets; no extra native window is created.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MaterialBottomSheetHost>
    

    Returns a strong reference to this object.

    Source

    state_property

    fn state_property() -> &'static StyledProperty<MaterialSheetState>
    

    Requested state. Bind this property two-way to application state.

    Source

    is_partial_enabled_property

    fn is_partial_enabled_property() -> &'static StyledProperty<bool>
    

    Whether the deterministic partial anchor is available.

    Source

    is_dismiss_enabled_property

    fn is_dismiss_enabled_property() -> &'static StyledProperty<bool>
    

    Whether scrim, drag and Escape may dismiss the sheet.

    Source

    safe_insets_property

    fn safe_insets_property() -> &'static StyledProperty<Thickness>
    

    Safe area supplied by the host, including system bars and keyboard insets.

    Source

    reduced_motion_property

    fn reduced_motion_property() -> &'static StyledProperty<bool>
    

    Source

    motion_scheme_property

    fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    state

    fn state(self: &Self) -> MaterialSheetState
    

    Source

    set_state

    fn set_state(self: &Self, value: MaterialSheetState)
    

    Source

    is_partial_enabled

    fn is_partial_enabled(self: &Self) -> bool
    

    Source

    set_is_partial_enabled

    fn set_is_partial_enabled(self: &Self, value: bool)
    

    Source

    is_dismiss_enabled

    fn is_dismiss_enabled(self: &Self) -> bool
    

    Source

    set_is_dismiss_enabled

    fn set_is_dismiss_enabled(self: &Self, value: bool)
    

    Source

    safe_insets

    fn safe_insets(self: &Self) -> Thickness
    

    Source

    set_safe_insets

    fn set_safe_insets(self: &Self, value: Thickness)
    

    Source

    reduced_motion

    fn reduced_motion(self: &Self) -> bool
    

    Source

    set_reduced_motion

    fn set_reduced_motion(self: &Self, value: bool)
    

    Source

    motion_scheme

    fn motion_scheme(self: &Self) -> MaterialMotionScheme
    

    Source

    set_motion_scheme

    fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
    

    Source

    current_state

    fn current_state(self: &Self) -> MaterialSheetState
    

    Source

    anchors

    fn anchors(self: &Self) -> MaterialSheetAnchors
    

    Source

    offset

    fn offset(self: &Self) -> f64
    

    Source

    is_animating

    fn is_animating(self: &Self) -> bool
    

    Source

    set_confirm_state_change

    fn set_confirm_state_change(self: &Self, confirm: Option<Rc<dyn Fn(MaterialSheetState) -> bool>>)
    

    A synchronous veto applied to programmatic state changes and user gestures. The callback must not change this host's state reentrantly.

    Source

    show

    fn show(self: &Self) -> bool
    

    Source

    expand

    fn expand(self: &Self) -> bool
    

    Source

    hide

    fn hide(self: &Self) -> bool
    

    Source

    handle_back

    fn handle_back(self: &Self) -> bool
    

    Expanded → partial → hidden, following the modal back behavior.

    Source

    request_state

    fn request_state(self: &Self, state: MaterialSheetState) -> bool
    

    Source

    dismissed_event

    fn dismissed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    settled_event

    fn settled_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    dismissed

    fn dismissed(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Source

    settled

    fn settled(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.