Alf::IAlfWidgetEventHandler Class Reference
class Alf::IAlfWidgetEventHandler : public Alf::IAlfInterfaceBase |
The interface for event handlers used by widget controls. The event handlers are used for handling any Alfred events, including key events, pointer events and custom events. Interfaces provided by the event handlers can be accessed using IAlfInterfaceBase::MakeInterface().
alfwidgetmodel.lib
- Since
- S60 ?S60_version Draft
Inherits from
- Alf::IAlfWidgetEventHandler
Constructor & Destructor Documentation
~IAlfWidgetEventHandler()
~IAlfWidgetEventHandler | ( | ) | [inline, virtual] |
Member Functions Documentation
accept(CAlfWidgetControl &, const TAlfEvent &)
bool | accept | ( | CAlfWidgetControl & | aControl, |
| const TAlfEvent & | aEvent |
| ) | const [pure virtual] |
Used to identify event handlers that are capable of handling a specified key or custom event. Pointer event handlers cannot be identified directly, since they are dependent on the presentation. Therefore, pointer event handlers should be associated with a custom event ID that can be used to simulate the actual pointer event.
offerEvent(CAlfWidgetControl &, const TAlfEvent &)
Called when an input event is being offered to this event handler. The return value is used to indicate if the event was processed. Processed events may not be offered to other event handlers.
Parameters
CAlfWidgetControl & aControl | The parent control of this event handler. |
const TAlfEvent & aEvent | The event. |
setActiveStates(unsigned int)
void | setActiveStates | ( | unsigned int | aStates | ) | [pure virtual] |
Defines the widget states, where the event handler is active. By default, if this method is not called, the event handler is expected to be active in all states.
Parameters
unsigned int aStates | A bitmask defining the widget states, where the event handler is active. The low 16 bits are reserved for the states defined by the framework in . The high 16 bits are available for states defined by the client code. |
setEventHandlerData(const AlfWidgetEventHandlerInitData &)
type()
const IfId & | type | ( | ) | [static, inline] |
Member Enumerations Documentation
Enum AlfEventHandlerExecutionPhase
Phase in which event handlers are executed.
Enumerators
ETunnellingPhaseEventHandler |
Tunneling event handlers are executed only in the tunnelling phase of the event handling cycle. Tunnelling event handlers are executed before IAlfWidgetControl::HandleEvent is executed. IAlfWidgetControl::HandleEvent
|
EBubblingPhaseEventHandler |
Bubbling event handlers are executed only in the bubbling phase of the event handling cycle. Bubbling event handlers are executed after IAlfWidgetControl::HandleEvent is executed. IAlfWidgetControl::HandleEvent
|
ETunnellingAndBubblingPhaseEventHandler |
These event handlers are executed both in the tunneling and bubbling phase of the event handling cycle i.e both before and after IAlfWidgetControl::HandleEvent is executed. IAlfWidgetControl::HandleEvent
|
Enum AlfEventHandlerType
Enumerators
EPresentationEventHandler |
Presentation related event handlers. These will be deleted when the presentation is destroyed. : IAlfWigetControl::destroyPresentation : IAlfWiget::setPresentation
|
ELogicalEventHandler |
Logical event handlers. These event handlers are not presentation related and will not be destroyed during the destruction of the presentation.
|
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.