C# Class Grafiti.GestureEventManager

Manages the registration of gesture event handlers.
Mostra file Open project: nuigroup/grafiti

Public Methods

Method Description
RegisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void

Registers a handler for a gesture event. The GR will be configured with the given configuration.

RegisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void

Registers a handler for a gesture event. The GR will be will be configured by default.

SetPriorityNumber ( Type grType, GRConfiguration configuration, int priorityNumber ) : void

Sets the priority number to associate with the given gesture recognizer class and the given configuration. Note that once a priority number is set it can't be changed.

SetPriorityNumber ( Type grType, int priorityNumber ) : void

Sets the priority number to associate with the given gesture recognizer class and its default configuration. However note that when registering a gesture event handler with the same GR type, no configuration must be passed as parameter in order to associate it with the priority number specified. Note that once a priority number is set it can't be changed.

UnregisterAllHandlersOf ( IGestureListener listener ) : void

Unregisters all registered handlers for the given listener.

UnregisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void
UnregisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void

Method Details

RegisterHandler() public static method

Registers a handler for a gesture event. The GR will be configured with the given configuration.
public static RegisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void
grType System.Type Type of the gesture recognizer.
grConf GRConfiguration The GR's configuration.
ev string
handler GestureEventHandler The listener's function that will be called when the event is raised.
return void

RegisterHandler() public static method

Registers a handler for a gesture event. The GR will be will be configured by default.
public static RegisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void
grType System.Type Type of the gesture recognizer.
ev string
handler GestureEventHandler The listener's function that will be called when the event is raised.
return void

SetPriorityNumber() public static method

Sets the priority number to associate with the given gesture recognizer class and the given configuration. Note that once a priority number is set it can't be changed.
public static SetPriorityNumber ( Type grType, GRConfiguration configuration, int priorityNumber ) : void
grType System.Type Type of the gesture recognizer.
configuration GRConfiguration Configuration of the gesture recognizer.
priorityNumber int Priority number.
return void

SetPriorityNumber() public static method

Sets the priority number to associate with the given gesture recognizer class and its default configuration. However note that when registering a gesture event handler with the same GR type, no configuration must be passed as parameter in order to associate it with the priority number specified. Note that once a priority number is set it can't be changed.
public static SetPriorityNumber ( Type grType, int priorityNumber ) : void
grType System.Type
priorityNumber int
return void

UnregisterAllHandlersOf() public static method

Unregisters all registered handlers for the given listener.
public static UnregisterAllHandlersOf ( IGestureListener listener ) : void
listener IGestureListener The listener
return void

UnregisterHandler() public static method

public static UnregisterHandler ( Type grType, GRConfiguration grConf, string ev, GestureEventHandler handler ) : void
grType System.Type
grConf GRConfiguration
ev string
handler GestureEventHandler
return void

UnregisterHandler() public static method

public static UnregisterHandler ( Type grType, string ev, GestureEventHandler handler ) : void
grType System.Type
ev string
handler GestureEventHandler
return void