Class AddGestures.GestureListener
public class AddGestures.GestureListener : SkiaControl, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IVisualElementController, IElementController, IView, ITransform, IElement, IVisualTreeElement, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, IHasAfterEffects, ISkiaControl, IDrawnBase, ICanBeUpdatedWithContext, ICanBeUpdated, ISkiaDisposable, IDisposable, ISkiaGestureListener
- Inheritance
-
AddGestures.GestureListener
- Implements
- Inherited Members
- Extension Methods
Constructors
GestureListener(SkiaControl)
public GestureListener(SkiaControl control)
Parameters
controlSkiaControl
Properties
CanDraw
public override bool CanDraw { get; }
Property Value
HitBoxAuto
This can be absolutely false if we are inside a cached rendering object parent that already moved somewhere. So coords will be of the moment we were first drawn, while if cached parent moved, our coords might differ. todo detect if parent is cached somewhere and offset hotbox by cached parent movement offset... todo think about it baby =) meanwhile just do not set gestures below cached level
public override SKRect HitBoxAuto { get; }
Property Value
Tag
public string Tag { get; set; }
Property Value
Methods
GetTopParentView()
Use Superview from public area
public override DrawnView GetTopParentView()
Returns
HitIsInside(float, float)
ISkiaGestureListener impl
public override bool HitIsInside(float x, float y)
Parameters
Returns
OnFocusChanged(bool)
This will be called only for views registered at Superview.FocusedChild. The view must return true of false to indicate if it accepts focus.
public virtual bool OnFocusChanged(bool focus)
Parameters
focusbool
Returns
PlayTouchAnimation(SkiaTouchAnimation, SkiaGesturesParameters, GestureEventProcessingInfo)
public void PlayTouchAnimation(SkiaTouchAnimation anim, SkiaGesturesParameters args, GestureEventProcessingInfo apply)
Parameters
animSkiaTouchAnimationargsSkiaGesturesParametersapplyGestureEventProcessingInfo
ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)
public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)
Parameters
argsSkiaGesturesParametersapplyGestureEventProcessingInfo
Returns
TranslateInputCoords(SKPoint, bool)
Use this to consume gestures in your control only, do not use result for passing gestures below
public override SKPoint TranslateInputCoords(SKPoint childOffset, bool accountForCache = true)