C# Class Grafiti.GestureEventManager

Manages the registration of gesture event handlers.
Afficher le fichier Open project: nuigroup/grafiti

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

RegisterHandler() public static méthode

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.
Résultat void

SetPriorityNumber() public static méthode

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.
Résultat void

SetPriorityNumber() public static méthode

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
Résultat void

UnregisterAllHandlersOf() public static méthode

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

UnregisterHandler() public static méthode

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

UnregisterHandler() public static méthode

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