OpendTect
6.6
|
Handles gesture event and triggers notifier with GestureEventInfo. More...
Public Member Functions | |
GestureEventHandler () | |
~GestureEventHandler () | |
const GestureEvent * | getPinchEventInfo () const |
bool | isHandled () const |
void | setHandled (bool yn) |
void | triggerPinchEvent (const GestureEvent &pinchevnt) |
Only available during events. More... | |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
Public Attributes | |
Notifier< GestureEventHandler > | pinchnotifier |
Private Attributes | |
const GestureEvent * | currentevent_ |
bool | ishandled_ |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Handles gesture event and triggers notifier with GestureEventInfo.
The callback function should look like this. It also has isHandled() and setHandled() functions similar to the mouse events, to explicitly handle the callback which prevents other objects in the chain to use it.
<>
GestureEventHandler::GestureEventHandler | ( | ) |
GestureEventHandler::~GestureEventHandler | ( | ) |
const GestureEvent* GestureEventHandler::getPinchEventInfo | ( | ) | const |
|
inline |
|
inline |
void GestureEventHandler::triggerPinchEvent | ( | const GestureEvent & | pinchevnt | ) |
Only available during events.
|
private |
|
private |
Notifier<GestureEventHandler> GestureEventHandler::pinchnotifier |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022