Table of Contents

Class AddGestures.GestureListener

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
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

control SkiaControl

Properties

CanDraw

public override bool CanDraw { get; }

Property Value

bool

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

SKRect

Tag

public string Tag { get; set; }

Property Value

string

Methods

GetTopParentView()

Use Superview from public area

public override DrawnView GetTopParentView()

Returns

DrawnView

HitIsInside(float, float)

ISkiaGestureListener impl

public override bool HitIsInside(float x, float y)

Parameters

x float
y float

Returns

bool

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

focus bool

Returns

bool

PlayTouchAnimation(SkiaTouchAnimation, SkiaGesturesParameters, GestureEventProcessingInfo)

public void PlayTouchAnimation(SkiaTouchAnimation anim, SkiaGesturesParameters args, GestureEventProcessingInfo apply)

Parameters

anim SkiaTouchAnimation
args SkiaGesturesParameters
apply GestureEventProcessingInfo

ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)

public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)

Parameters

args SkiaGesturesParameters
apply GestureEventProcessingInfo

Returns

ISkiaGestureListener

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)

Parameters

childOffset SKPoint
accountForCache bool

Returns

SKPoint