C# 클래스 Grafiti.GestureEventManager

Manages the registration of gesture event handlers.
파일 보기 프로젝트 열기: nuigroup/grafiti

공개 메소드들

메소드 설명
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

메소드 상세

RegisterHandler() 공개 정적인 메소드

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.
리턴 void

RegisterHandler() 공개 정적인 메소드

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.
리턴 void

SetPriorityNumber() 공개 정적인 메소드

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.
리턴 void

SetPriorityNumber() 공개 정적인 메소드

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
리턴 void

UnregisterAllHandlersOf() 공개 정적인 메소드

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

UnregisterHandler() 공개 정적인 메소드

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

UnregisterHandler() 공개 정적인 메소드

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