CStmGestureContext Class Reference
class CStmGestureContext : public CBase, public stmGesture::MGestureListener
|
Gesture context represents a certain configuration of gesture parameters (including what gestures are enabled) and gesture listeners. Context can be created beforehand and reused later. The assumed use of a context is to have rough correspondence between UI view and enabled gestures.
Note:
Gesture contexts are created by an instance of CStmGestureEngine.
Constructor & Destructor Documentation
CStmGestureContext(CStmGestureEngine &)
CStmGestureContext
|
(
|
CStmGestureEngine &
|
aEngine
|
)
|
|
Parameters
CStmGestureEngine & aEngine
|
|
Member Functions Documentation
ActivateL()
IMPORT_C void
|
ActivateL
|
(
|
)
|
|
Initialize context configuration on the Gesture Engine.
AddListenerL(MStmGestureListener *, TInt)
Add listener to the gesture processing context.
Parameters
MStmGestureListener
* aListener
|
Listener object
|
TInt
aPos = 0
|
Position of inserted listener which determines order in which it receives gesture events (0 == first, before existing)
|
Config()
CStmGestureParameters &
|
Config
|
(
|
)
|
[inline]
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Deactivate()
IMPORT_C void
|
Deactivate
|
(
|
)
|
|
deactivate context configuration on the Gesture Engine.
DispatchGestureEventL(TStmGestureUid, MStmGesture *)
void
|
DispatchGestureEventL
|
(
|
TStmGestureUid
|
aUid,
|
|
MStmGesture
*
|
aGesture
|
|
)
|
[private]
|
EnableRecognizerL(TStmGestureUid)
void
|
EnableRecognizerL
|
(
|
TStmGestureUid
|
aUid
|
)
|
[private]
|
EnableRecognizersL()
void
|
EnableRecognizersL
|
(
|
)
|
[private]
|
Id()
TInt
|
Id
|
(
|
)
|
const [inline]
|
IsActive()
TBool
|
IsActive
|
(
|
)
|
[inline]
|
is gesture context is active ?
Listeners()
To get the list of listeners
RemoveListener(MStmGestureListener *)
Remove listener from the gesture processing context.
SetContext(CCoeControl *)
To set the context configuration in Gesture Engine.
SetLogging(TInt)
void
|
SetLogging
|
(
|
TInt
|
aEnabled
|
)
|
[inline]
|
SuspendRecognizer(TStmGestureUid)
void
|
SuspendRecognizer
|
(
|
TStmGestureUid
|
aUid
|
)
|
[private]
|
gestureEnter(MStmGesture &)
void
|
gestureEnter
|
(
|
MStmGesture
&
|
theGesture
|
)
|
[virtual]
|
The method that will be called by the gesture framework to inform about a gesture being recognised.
gestureExit(TStmGestureUid)
void
|
gestureExit
|
(
|
TStmGestureUid
|
gestureUid
|
)
|
[virtual]
|
The method to inform the listener that the gesture has ended. This happens if another gesture is recognised or e.g. the Release UI event is handled.
Parameters
TStmGestureUid
gestureUid
|
|
getOwner()
The listener needs to provide the target control (CCoeControl*) to the standard gestures. Since the gesture framework processes all events in the application, the gesture recognisers check whether the events are targeted to the listener owning control. Not all gesture recognisers need to perform this check.
Member Data Documentation
TBool
iActivated
TBool
|
iActivated
|
[private]
|
CStmGestureParameters * iConfig
CStmGestureParameters *
|
iConfig
|
[private]
|
CStmGestureEngine & iEngine
CStmGestureEngine &
|
iEngine
|
[private]
|
CGestureEventSender * iEventSender
CGestureEventSender *
|
iEventSender
|
[private]
|
RPointerArray< MStmGestureListener > iListeners
CCoeControl * iOwnerControl
MStmGestureRecogniser * iRecognizers
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.