pub struct PullGestureEndedEventArgs { /* private fields */ }Expand description
Provides data for the pull gesture ended event.
Implementations§
Source§impl PullGestureEndedEventArgs
impl PullGestureEndedEventArgs
Sourcepub fn new(id: i32, pull_direction: PullDirection) -> Self
pub fn new(id: i32, pull_direction: PullDirection) -> Self
Creates pull gesture ended event args.
Sourcepub fn pull_direction(&self) -> PullDirection
pub fn pull_direction(&self) -> PullDirection
The direction of the pull.
Methods from Deref<Target = RoutedEventArgs>§
Sourcepub fn handled(&self) -> bool
pub fn handled(&self) -> bool
Whether the routed event has already been handled.
Once handled, the event keeps travelling along its route but is only delivered to handlers registered for handled events too.
Sourcepub fn set_handled(&self, value: bool)
pub fn set_handled(&self, value: bool)
Marks the routed event as handled or unhandled.
Sourcepub fn routed_event(&self) -> Option<RoutedEvent>
pub fn routed_event(&self) -> Option<RoutedEvent>
The routed event associated with these args.
Sourcepub fn set_routed_event<T: ?Sized>(&self, value: Option<&RoutedEvent<T>>)
pub fn set_routed_event<T: ?Sized>(&self, value: Option<&RoutedEvent<T>>)
Sets the routed event associated with these args.
Sourcepub fn route(&self) -> RoutingStrategies
pub fn route(&self) -> RoutingStrategies
The routing strategy currently being applied to the event.
Sourcepub fn set_route(&self, value: RoutingStrategies)
pub fn set_route(&self, value: RoutingStrategies)
Sets the routing strategy currently being applied to the event.
Sourcepub fn source(&self) -> Option<Ref<FerroObject>>
pub fn source(&self) -> Option<Ref<FerroObject>>
The object that raised the event.
Sourcepub fn set_source(&self, value: impl Into<Nullable<FerroObject>>)
pub fn set_source(&self, value: impl Into<Nullable<FerroObject>>)
Sets the object that raised the event.
Sourcepub fn is_source(&self, object: &FerroObject) -> bool
pub fn is_source(&self, object: &FerroObject) -> bool
Whether object is the source of the event (C# e.Source == object).
Trait Implementations§
Source§impl Clone for PullGestureEndedEventArgs
impl Clone for PullGestureEndedEventArgs
Source§impl Deref for PullGestureEndedEventArgs
impl Deref for PullGestureEndedEventArgs
Source§type Target = RoutedEventArgs
type Target = RoutedEventArgs
The resulting type after dereferencing.
Source§fn deref(&self) -> &RoutedEventArgs
fn deref(&self) -> &RoutedEventArgs
Dereferences the value.
Source§impl IRoutedEventArgs for PullGestureEndedEventArgs
impl IRoutedEventArgs for PullGestureEndedEventArgs
Source§fn as_routed_event_args(&self) -> &RoutedEventArgs
fn as_routed_event_args(&self) -> &RoutedEventArgs
The base routed event args: the routing state of the event.
Source§fn query_args(&self, type_id: TypeId) -> Option<&dyn Any>
fn query_args(&self, type_id: TypeId) -> Option<&dyn Any>
Returns the args viewed as the args type identified by
type_id, if
the args are of that type or of a type derived from it.Source§fn is_args_type(type_id: TypeId) -> bool
fn is_args_type(type_id: TypeId) -> bool
Whether this args type is the args type identified by
type_id or is
derived from it.A shared handle to these args: what untyped code (a handler wired up
by markup) is given, since a borrow cannot be held in an untyped
value. The handle refers to the live args: the state handlers change
(
handled, the source, a cancel flag, ..) is shared with them.Source§impl MarkupTyped for PullGestureEndedEventArgs
impl MarkupTyped for PullGestureEndedEventArgs
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !RefUnwindSafe for PullGestureEndedEventArgs
impl !Send for PullGestureEndedEventArgs
impl !Sync for PullGestureEndedEventArgs
impl !UnwindSafe for PullGestureEndedEventArgs
impl Freeze for PullGestureEndedEventArgs
impl Unpin for PullGestureEndedEventArgs
impl UnsafeUnpin for PullGestureEndedEventArgs
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more