26 #include "hbinstantinteractionevent_p.h" |
26 #include "hbinstantinteractionevent_p.h" |
27 #include "hbwidget.h" |
27 #include "hbwidget.h" |
28 |
28 |
29 const int HbInstantInteractionEvent::InstantInteraction = registerEventType(); |
29 const int HbInstantInteractionEvent::InstantInteraction = registerEventType(); |
30 |
30 |
31 /*! |
|
32 @beta |
|
33 @hbcore |
|
34 |
|
35 \class HbInstantInteractionEvent |
|
36 \brief Interaction event contains widget interaction information. Feedback engines use this |
|
37 information to implement various feedback effects. |
|
38 |
|
39 HbInstantInteractionEvent::InstantInteraction - QEvent type for interaction events. |
|
40 |
|
41 Continuous interactions are called gestures. |
|
42 |
|
43 \sa HbContinuousInteractionEvent |
|
44 */ |
|
45 |
31 |
46 /*! |
32 /*! |
47 \fn const HbWidget* HbInstantInteractionEvent::widget() const |
33 \fn const HbWidget* HbInstantInteractionEvent::widget() const |
48 |
34 |
49 Returns the widget being interacted with. Should never be null. |
35 Returns the widget being interacted with. Should never be null. |
|
36 |
|
37 \internal |
50 */ |
38 */ |
51 |
39 |
52 /*! |
40 /*! |
53 \fn Hb::InstantInteraction HbInstantInteractionEvent::interaction() const |
41 \fn Hb::InstantInteraction HbInstantInteractionEvent::interaction() const |
54 |
42 |
55 Returns the type of interaction, whether the widget was pressed, released, etc. |
43 Returns the type of instant interaction |
|
44 |
|
45 \internal |
56 */ |
46 */ |
57 |
47 |
58 /*! |
48 /*! |
59 Constructs HbInstantInteractionEvent with interaction information. |
49 Constructs HbInstantInteractionEvent with interaction information. |
60 |
50 |
|
51 Interaction event contains widget interaction information. Feedback engines use this |
|
52 information to implement various feedback effects. |
|
53 |
61 \param widget the widget being interacted with |
54 \param widget the widget being interacted with |
62 \param interaction the interaction |
55 \param interaction the interaction |
63 \param modifiers optional modifiers associated to the interaction |
56 \param modifiers optional modifiers associated to the interaction |
|
57 |
|
58 \internal |
64 */ |
59 */ |
65 |
60 |
66 HbInstantInteractionEvent::HbInstantInteractionEvent(const HbWidget *widget, Hb::InstantInteraction interaction, Hb::InteractionModifiers modifiers) |
61 HbInstantInteractionEvent::HbInstantInteractionEvent(const HbWidget *widget, Hb::InstantInteraction interaction, Hb::InteractionModifiers modifiers) |
67 : QEvent((QEvent::Type)HbInstantInteractionEvent::InstantInteraction), m_widget(widget), m_interaction(interaction), m_modifiers(modifiers) |
62 : QEvent((QEvent::Type)HbInstantInteractionEvent::InstantInteraction), m_widget(widget), m_interaction(interaction), m_modifiers(modifiers) |
68 { |
63 { |