pub struct FluentScrollBehavior;Expand description
How a Fluent app’s scrollables behave: WinUI’s scroll bar and edge.
The scrollbar is RawScrollbar at the kit’s two-point thickness in the theme’s
ScrollBarForeground, shown while a scroll is under way and hidden after it, as WinUI’s
auto-hiding bar is. No glow or stretch marks the edge, as none does a ScrollViewer’s. The
physics are the platform’s, as ScrollBehavior’s default gives them: bouncing on iOS and
macOS, clamping elsewhere.
Implementations§
Source§impl FluentScrollBehavior
impl FluentScrollBehavior
Sourcepub const fn new() -> FluentScrollBehavior
pub const fn new() -> FluentScrollBehavior
WinUI’s scrolling for the app.
Trait Implementations§
Source§impl Clone for FluentScrollBehavior
impl Clone for FluentScrollBehavior
impl Copy for FluentScrollBehavior
Source§impl Debug for FluentScrollBehavior
impl Debug for FluentScrollBehavior
Source§impl Default for FluentScrollBehavior
impl Default for FluentScrollBehavior
impl Eq for FluentScrollBehavior
Source§impl PartialEq for FluentScrollBehavior
impl PartialEq for FluentScrollBehavior
Source§impl ScrollBehavior for FluentScrollBehavior
impl ScrollBehavior for FluentScrollBehavior
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased behavior, for Dart’s
behavior.runtimeType and the
covariant oldDelegate a should_notify override casts.Source§fn build_scrollbar(
&self,
app: &mut App,
context: BuildContext,
child: WidgetRef,
details: &ScrollableDetails,
) -> WidgetRef
fn build_scrollbar( &self, app: &mut App, context: BuildContext, child: WidgetRef, details: &ScrollableDetails, ) -> WidgetRef
Applies a
RawScrollbar to the child widget on desktop platforms.Source§fn build_overscroll_indicator(
&self,
_app: &mut App,
_context: BuildContext,
child: WidgetRef,
_details: &ScrollableDetails,
) -> WidgetRef
fn build_overscroll_indicator( &self, _app: &mut App, _context: BuildContext, child: WidgetRef, _details: &ScrollableDetails, ) -> WidgetRef
Applies a
GlowingOverscrollIndicator to the child widget on
TargetPlatform::Android and TargetPlatform::Fuchsia.Source§fn get_platform(&self, app: &mut App, context: AnyElement) -> TargetPlatform
fn get_platform(&self, app: &mut App, context: AnyElement) -> TargetPlatform
The platform whose scroll physics should be implemented. Read more
Source§fn drag_devices(&self) -> HashSet<PointerDeviceKind>
fn drag_devices(&self) -> HashSet<PointerDeviceKind>
The device kinds that the scrollable will accept drag gestures from. Read more
Source§fn get_multitouch_drag_strategy(
&self,
app: &mut App,
context: AnyElement,
) -> MultitouchDragStrategy
fn get_multitouch_drag_strategy( &self, app: &mut App, context: AnyElement, ) -> MultitouchDragStrategy
The multi-finger drag strategy on multi-touch devices. Read more
Source§fn pointer_axis_modifiers(&self) -> HashSet<LogicalKeyboardKey>
fn pointer_axis_modifiers(&self) -> HashSet<LogicalKeyboardKey>
A set of
LogicalKeyboardKeys that, when any or all are pressed in
combination with a PointerDeviceKind::Mouse pointer scroll event, will
flip the axes of the scroll input. Read moreSource§fn velocity_tracker_builder(
&self,
app: &mut App,
context: AnyElement,
) -> Rc<dyn Fn(&PointerEvent) -> Box<dyn AnyVelocityTracker>>
fn velocity_tracker_builder( &self, app: &mut App, context: AnyElement, ) -> Rc<dyn Fn(&PointerEvent) -> Box<dyn AnyVelocityTracker>>
Specifies the type of velocity tracker to use in the descendant
Scrollables’ drag gesture recognizers, for estimating the velocity of a
drag gesture. Read moreSource§fn get_scroll_physics(
&self,
app: &mut App,
context: AnyElement,
) -> Rc<dyn ScrollPhysics>
fn get_scroll_physics( &self, app: &mut App, context: AnyElement, ) -> Rc<dyn ScrollPhysics>
The scroll physics to use for the platform given by
get_platform. Read moreSource§fn should_notify(&self, old_delegate: &(dyn ScrollBehavior + 'static)) -> bool
fn should_notify(&self, old_delegate: &(dyn ScrollBehavior + 'static)) -> bool
Called whenever a
ScrollConfiguration is rebuilt with a new
ScrollBehavior of the same runtime type. Read moreSource§fn get_keyboard_dismiss_behavior(
&self,
app: &mut App,
context: AnyElement,
) -> ScrollViewKeyboardDismissBehavior
fn get_keyboard_dismiss_behavior( &self, app: &mut App, context: AnyElement, ) -> ScrollViewKeyboardDismissBehavior
The default keyboard dismissal behavior for
ScrollView widgets. Read moreimpl StructuralPartialEq for FluentScrollBehavior
Auto Trait Implementations§
impl Forget for FluentScrollBehavior
impl Freeze for FluentScrollBehavior
impl Move for FluentScrollBehavior
impl RefUnwindSafe for FluentScrollBehavior
impl Send for FluentScrollBehavior
impl Sync for FluentScrollBehavior
impl Unpin for FluentScrollBehavior
impl UnsafeUnpin for FluentScrollBehavior
impl UnwindSafe for FluentScrollBehavior
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
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<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
Compare self to
key and return true if they are equal.