Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/view
AbstractPositionGesture
Class AbstractPositionGesture<V>
Type parameters
V
:
View
Hierarchy
AbstractPositionGesture
PointerPositionGesture
TouchPositionGesture
MousePositionGesture
AbstractMomentumGesture
Implements
ViewObserver
<
V
>
Index
Constructors
constructor
Properties
delegate
hover
Count
input
Count
inputs
press
Count
view
Methods
attach
Events
attach
Hover
Events
attach
Press
Events
begin
Hover
begin
Press
cancel
Press
clear
Input
create
Input
detach
Events
detach
Hover
Events
detach
Press
Events
did
Begin
Hover
did
Begin
Press
did
Cancel
Press
did
End
Hover
did
End
Press
did
Long
Press
did
Move
Press
did
Press
did
Start
Hovering
did
Start
Pressing
did
Stop
Hovering
did
Stop
Pressing
end
Hover
end
Press
get
Input
get
OrCreate
Input
init
View
is
Hovering
is
Pressing
long
Press
move
Press
on
Begin
Hover
on
Begin
Press
on
Cancel
Press
on
End
Hover
on
End
Press
on
Long
Press
on
Move
Press
on
Press
on
Start
Hovering
on
Start
Pressing
on
Stop
Hovering
on
Stop
Pressing
press
set
Delegate
set
View
start
Hovering
start
Pressing
stop
Hovering
stop
Pressing
view
Did
Mount
view
Will
Unmount
will
Begin
Hover
will
Begin
Press
will
Cancel
Press
will
End
Hover
will
End
Press
will
Long
Press
will
Move
Press
will
Press
will
Start
Hovering
will
Start
Pressing
will
Stop
Hovering
will
Stop
Pressing
Constructors
constructor
new
Abstract
Position
Gesture<V>
(
view
:
null
|
V
, delegate
?:
null
|
PositionGestureDelegate
)
:
AbstractPositionGesture
<
V
>
Type parameters
V
:
View
<
V
>
Parameters
view:
null
|
V
Optional
delegate:
null
|
PositionGestureDelegate
Returns
AbstractPositionGesture
<
V
>
Properties
Readonly
delegate
delegate
:
null
|
PositionGestureDelegate
Readonly
hover
Count
hover
Count
:
number
Readonly
input
Count
input
Count
:
number
Readonly
inputs
inputs
:
{}
Type declaration
[
inputId:
string
]:
PositionGestureInput
|
undefined
Readonly
press
Count
press
Count
:
number
Readonly
view
view
:
null
|
V
Methods
Protected
attach
Events
attach
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
attach
Hover
Events
attach
Hover
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
attach
Press
Events
attach
Press
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
begin
Hover
begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
begin
Press
begin
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
cancel
Press
cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
clear
Input
clear
Input
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
create
Input
create
Input
(
inputId
:
string
, inputType
:
GestureInputType
, isPrimary
:
boolean
, x
:
number
, y
:
number
, t
:
number
)
:
PositionGestureInput
Parameters
inputId:
string
inputType:
GestureInputType
isPrimary:
boolean
x:
number
y:
number
t:
number
Returns
PositionGestureInput
Protected
detach
Events
detach
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
detach
Hover
Events
detach
Hover
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
detach
Press
Events
detach
Press
Events
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
did
Begin
Hover
did
Begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Begin
Press
did
Begin
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Cancel
Press
did
Cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
End
Hover
did
End
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
End
Press
did
End
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Long
Press
did
Long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
did
Move
Press
did
Move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Press
did
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
did
Start
Hovering
did
Start
Hovering
(
)
:
void
Returns
void
Protected
did
Start
Pressing
did
Start
Pressing
(
)
:
void
Returns
void
Protected
did
Stop
Hovering
did
Stop
Hovering
(
)
:
void
Returns
void
Protected
did
Stop
Pressing
did
Stop
Pressing
(
)
:
void
Returns
void
end
Hover
end
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
end
Press
end
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
get
Input
get
Input
(
inputId
:
string
|
number
)
:
null
|
PositionGestureInput
Parameters
inputId:
string
|
number
Returns
null
|
PositionGestureInput
Protected
get
OrCreate
Input
get
OrCreate
Input
(
inputId
:
string
|
number
, inputType
:
GestureInputType
, isPrimary
:
boolean
, x
:
number
, y
:
number
, t
:
number
)
:
PositionGestureInput
Parameters
inputId:
string
|
number
inputType:
GestureInputType
isPrimary:
boolean
x:
number
y:
number
t:
number
Returns
PositionGestureInput
Protected
init
View
init
View
(
view
:
null
|
V
)
:
void
Parameters
view:
null
|
V
Returns
void
is
Hovering
is
Hovering
(
)
:
boolean
Returns
boolean
is
Pressing
is
Pressing
(
)
:
boolean
Returns
boolean
long
Press
long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
move
Press
move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Begin
Hover
on
Begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Begin
Press
on
Begin
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Cancel
Press
on
Cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
End
Hover
on
End
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
End
Press
on
End
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Long
Press
on
Long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
on
Move
Press
on
Move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Press
on
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
on
Start
Hovering
on
Start
Hovering
(
)
:
void
Returns
void
Protected
on
Start
Pressing
on
Start
Pressing
(
)
:
void
Returns
void
Protected
on
Stop
Hovering
on
Stop
Hovering
(
)
:
void
Returns
void
Protected
on
Stop
Pressing
on
Stop
Pressing
(
)
:
void
Returns
void
press
press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
set
Delegate
set
Delegate
(
delegate
:
null
|
PositionGestureDelegate
)
:
void
Parameters
delegate:
null
|
PositionGestureDelegate
Returns
void
set
View
set
View
(
newView
:
null
|
V
)
:
void
Parameters
newView:
null
|
V
Returns
void
Protected
start
Hovering
start
Hovering
(
)
:
void
Returns
void
Protected
start
Pressing
start
Pressing
(
)
:
void
Returns
void
Protected
stop
Hovering
stop
Hovering
(
)
:
void
Returns
void
Protected
stop
Pressing
stop
Pressing
(
)
:
void
Returns
void
view
Did
Mount
view
Did
Mount
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
view
Will
Unmount
view
Will
Unmount
(
view
:
V
)
:
void
Parameters
view:
V
Returns
void
Protected
will
Begin
Hover
will
Begin
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Begin
Press
will
Begin
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
boolean
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
boolean
Protected
will
Cancel
Press
will
Cancel
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
End
Hover
will
End
Hover
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
End
Press
will
End
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Long
Press
will
Long
Press
(
input
:
PositionGestureInput
)
:
void
Parameters
input:
PositionGestureInput
Returns
void
Protected
will
Move
Press
will
Move
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Press
will
Press
(
input
:
PositionGestureInput
, event
:
null
|
Event
)
:
void
Parameters
input:
PositionGestureInput
event:
null
|
Event
Returns
void
Protected
will
Start
Hovering
will
Start
Hovering
(
)
:
void
Returns
void
Protected
will
Start
Pressing
will
Start
Pressing
(
)
:
void
Returns
void
Protected
will
Stop
Hovering
will
Stop
Hovering
(
)
:
void
Returns
void
Protected
will
Stop
Pressing
will
Stop
Pressing
(
)
:
void
Returns
void
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Abstract
Position
Gesture
constructor
delegate
hover
Count
input
Count
inputs
press
Count
view
attach
Events
attach
Hover
Events
attach
Press
Events
begin
Hover
begin
Press
cancel
Press
clear
Input
create
Input
detach
Events
detach
Hover
Events
detach
Press
Events
did
Begin
Hover
did
Begin
Press
did
Cancel
Press
did
End
Hover
did
End
Press
did
Long
Press
did
Move
Press
did
Press
did
Start
Hovering
did
Start
Pressing
did
Stop
Hovering
did
Stop
Pressing
end
Hover
end
Press
get
Input
get
OrCreate
Input
init
View
is
Hovering
is
Pressing
long
Press
move
Press
on
Begin
Hover
on
Begin
Press
on
Cancel
Press
on
End
Hover
on
End
Press
on
Long
Press
on
Move
Press
on
Press
on
Start
Hovering
on
Start
Pressing
on
Stop
Hovering
on
Stop
Pressing
press
set
Delegate
set
View
start
Hovering
start
Pressing
stop
Hovering
stop
Pressing
view
Did
Mount
view
Will
Unmount
will
Begin
Hover
will
Begin
Press
will
Cancel
Press
will
End
Hover
will
End
Press
will
Long
Press
will
Move
Press
will
Press
will
Start
Hovering
will
Start
Pressing
will
Stop
Hovering
will
Stop
Pressing
Generated using
TypeDoc