編集

次の方法で共有


SKTouchEventArgs Constructors

Definition

Overloads

SKTouchEventArgs(Int64, SKTouchAction, SKPoint, Boolean)

Creates a new instance of the SKTouchEventArgs event arguments.

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean)

Creates a new instance of the SKTouchEventArgs event arguments.

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean, Int32)

Creates a new instance of the SKTouchEventArgs event arguments.

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean, Int32, Single)

Creates a new instance of the SKTouchEventArgs event arguments.

SKTouchEventArgs(Int64, SKTouchAction, SKPoint, Boolean)

Creates a new instance of the SKTouchEventArgs event arguments.

public SKTouchEventArgs (long id, SkiaSharp.Views.Forms.SKTouchAction type, SkiaSharp.SKPoint location, bool inContact);

Parameters

id
Int64

The ID used to track the touch event.

type
SKTouchAction

The type of touch action that initiated this event.

location
SKPoint

The location of the touch.

inContact
Boolean

Whether or not the touch device is in contact with the screen.

Remarks

This constructor sets the DeviceType to Touch and the MouseButton to Left.

Applies to

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean)

Creates a new instance of the SKTouchEventArgs event arguments.

public SKTouchEventArgs (long id, SkiaSharp.Views.Forms.SKTouchAction type, SkiaSharp.Views.Forms.SKMouseButton mouseButton, SkiaSharp.Views.Forms.SKTouchDeviceType deviceType, SkiaSharp.SKPoint location, bool inContact);

Parameters

id
Int64

The ID used to track the touch event.

type
SKTouchAction

The type of touch action that initiated this event.

mouseButton
SKMouseButton

The mouse button used to raise the touch event.

deviceType
SKTouchDeviceType

The touch device used to raise the touch event.

location
SKPoint

The location of the touch.

inContact
Boolean

Whether or not the touch device is in contact with the screen, or the mouse button pressed.

Applies to

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean, Int32)

Creates a new instance of the SKTouchEventArgs event arguments.

public SKTouchEventArgs (long id, SkiaSharp.Views.Forms.SKTouchAction type, SkiaSharp.Views.Forms.SKMouseButton mouseButton, SkiaSharp.Views.Forms.SKTouchDeviceType deviceType, SkiaSharp.SKPoint location, bool inContact, int wheelDelta);

Parameters

id
Int64

The ID used to track the touch event.

type
SKTouchAction

The type of touch action that initiated this event.

mouseButton
SKMouseButton

The mouse button used to raise the touch event.

deviceType
SKTouchDeviceType

The touch device used to raise the touch event.

location
SKPoint

The location of the touch.

inContact
Boolean

Whether or not the touch device is in contact with the screen, or the mouse button pressed.

wheelDelta
Int32

The amount the wheel was scrolled.

Applies to

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean, Int32, Single)

Creates a new instance of the SKTouchEventArgs event arguments.

public SKTouchEventArgs (long id, SkiaSharp.Views.Forms.SKTouchAction type, SkiaSharp.Views.Forms.SKMouseButton mouseButton, SkiaSharp.Views.Forms.SKTouchDeviceType deviceType, SkiaSharp.SKPoint location, bool inContact, int wheelDelta, float pressure);

Parameters

id
Int64

The ID used to track the touch event.

type
SKTouchAction

The type of touch action that initiated this event.

mouseButton
SKMouseButton

The mouse button used to raise the touch event.

deviceType
SKTouchDeviceType

The touch device used to raise the touch event.

location
SKPoint

The location of the touch.

inContact
Boolean

Whether or not the touch device is in contact with the screen, or the mouse button pressed.

wheelDelta
Int32

The amount the wheel was scrolled.

pressure
Single

The pressure of the touch event.

Applies to