C# Class Grafiti.GlobalGestureRecognizer

A GGR recognizes gestures produced anywhere. An instance of this class (or its subclasses) will be created for each group in the surface, at the moment of its creation (when there is at least one registered listener). Event handlers' targets have to implement the interface IGestureListener (or ITangibleGestureListener).
Inheritance: GestureRecognizer
Show file Open project: nuigroup/grafiti

Protected Properties

Property Type Description
ClosestCurrentEvents string[]
ClosestEnteringEvents string[]
ClosestFinalEvents string[]
ClosestInitialEvents string[]
ClosestLeavingEvents string[]
ClosestNewInitialEvents string[]
CurrentEvents string[]
DefaultEvents string[]
EnteringEvents string[]
FinalEvents string[]
InitialEvents string[]
IntersectionEvents string[]
LeavingEvents string[]
NewInitialEvents string[]
UnionEvents string[]

Public Methods

Method Description
GlobalGestureRecognizer ( GRConfiguration configuration ) : System

Protected Methods

Method Description
UpdateEventHandlers ( bool initial, bool final, bool entering, bool current, bool leaving, bool intersect, bool union, bool newClosestEnt, bool newClosestCur, bool newClosestLvn, bool newClosestIni, bool newClosestFin ) : void

Updates handlers for the events with targets appearing in the predefined target lists. You can override this funcion, to deal the changes, remebering to call the base function before or after your code.

Private Methods

Method Description
AddHandler ( string ev, GestureEventHandler handler ) : void
UpdateHandlers ( TargetList targetList ) : void
UpdateHandlers1 ( bool initial, bool final, bool entering, bool current, bool leaving, bool intersect, bool union, bool newClosestEnt, bool newClosestCur, bool newClosestLvn, bool newClosestIni, bool newClosestFin ) : void

Updates handlers for the events with targets appearing in the predefined target lists

Method Details

GlobalGestureRecognizer() public method

public GlobalGestureRecognizer ( GRConfiguration configuration ) : System
configuration GRConfiguration
return System

UpdateEventHandlers() protected method

Updates handlers for the events with targets appearing in the predefined target lists. You can override this funcion, to deal the changes, remebering to call the base function before or after your code.
protected UpdateEventHandlers ( bool initial, bool final, bool entering, bool current, bool leaving, bool intersect, bool union, bool newClosestEnt, bool newClosestCur, bool newClosestLvn, bool newClosestIni, bool newClosestFin ) : void
initial bool
final bool
entering bool
current bool
leaving bool
intersect bool
union bool
newClosestEnt bool
newClosestCur bool
newClosestLvn bool
newClosestIni bool
newClosestFin bool
return void

Property Details

ClosestCurrentEvents protected property

protected string[] ClosestCurrentEvents
return string[]

ClosestEnteringEvents protected property

protected string[] ClosestEnteringEvents
return string[]

ClosestFinalEvents protected property

protected string[] ClosestFinalEvents
return string[]

ClosestInitialEvents protected property

protected string[] ClosestInitialEvents
return string[]

ClosestLeavingEvents protected property

protected string[] ClosestLeavingEvents
return string[]

ClosestNewInitialEvents protected property

protected string[] ClosestNewInitialEvents
return string[]

CurrentEvents protected property

protected string[] CurrentEvents
return string[]

DefaultEvents protected property

protected string[] DefaultEvents
return string[]

EnteringEvents protected property

protected string[] EnteringEvents
return string[]

FinalEvents protected property

protected string[] FinalEvents
return string[]

InitialEvents protected property

protected string[] InitialEvents
return string[]

IntersectionEvents protected property

protected string[] IntersectionEvents
return string[]

LeavingEvents protected property

protected string[] LeavingEvents
return string[]

NewInitialEvents protected property

protected string[] NewInitialEvents
return string[]

UnionEvents protected property

protected string[] UnionEvents
return string[]