Tizen Native API
5.5
|
This class emits a signal when a tap gesture occurs that meets the requirements set by the application. More...
Public Types | |
typedef Signal< void(Actor, const TapGesture &) > | DetectedSignalType |
Signal type for detected signal. | |
Public Member Functions | |
TapGestureDetector () | |
Creates an uninitialized TapGestureDetector; this can be initialized with TapGestureDetector::New(). | |
~TapGestureDetector () | |
Destructor. | |
TapGestureDetector (const TapGestureDetector &handle) | |
This copy constructor is required for (smart) pointer semantics. | |
TapGestureDetector & | operator= (const TapGestureDetector &rhs) |
This assignment operator is required for (smart) pointer semantics. | |
void | SetMinimumTapsRequired (uint32_t minimumTaps) |
Sets the minimum number of taps required. | |
void | SetMaximumTapsRequired (uint32_t maximumTaps) |
Sets the maximum number of taps required. | |
uint32_t | GetMinimumTapsRequired () const |
Retrieves the minimum number of taps required. | |
uint32_t | GetMaximumTapsRequired () const |
Retrieves the maximum number of taps required. | |
DetectedSignalType & | DetectedSignal () |
This signal is emitted when the specified tap is detected on the attached actor. | |
Static Public Member Functions | |
static TapGestureDetector | New () |
Creates an initialized TapGestureDetector. | |
static TapGestureDetector | New (uint32_t tapsRequired) |
Creates an initialized TapGestureDetector with the specified parameters. | |
static TapGestureDetector | DownCast (BaseHandle handle) |
Downcasts a handle to TapGestureDetector handle. |
This class emits a signal when a tap gesture occurs that meets the requirements set by the application.
See TapGestureDetector::SetMinimumTapsRequired See TapGestureDetector::SetMaximumTapsRequired
A TapGesture is a discrete gesture, which means it does not have any state information attached to it. Please see TapGesture for more information.
The application programmer can use this gesture detector as follows:
TapGestureDetector detector = TapGestureDetector::New(); detector.Attach(myActor); detector.DetectedSignal().Connect(this, &MyApplication::OnTap);
Signals | Signal Name | Method | |--------------|-----------------------| | tapDetected | DetectedSignal() |
typedef Signal< void ( Actor, const TapGesture& ) > Dali::TapGestureDetector::DetectedSignalType |
Signal type for detected signal.
Creates an uninitialized TapGestureDetector; this can be initialized with TapGestureDetector::New().
Calling member functions with an uninitialized TapGestureDetector handle is not allowed.
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::TapGestureDetector::TapGestureDetector | ( | const TapGestureDetector & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
This signal is emitted when the specified tap is detected on the attached actor.
A callback of the following type may be connected:
void YourCallbackName( Actor actor, const TapGesture& gesture );
static TapGestureDetector Dali::TapGestureDetector::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to TapGestureDetector handle.
If handle points to a TapGestureDetector object, the downcast produces valid handle. If not, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Reimplemented from Dali::GestureDetector.
uint32_t Dali::TapGestureDetector::GetMaximumTapsRequired | ( | ) | const |
Retrieves the maximum number of taps required.
uint32_t Dali::TapGestureDetector::GetMinimumTapsRequired | ( | ) | const |
Retrieves the minimum number of taps required.
static TapGestureDetector Dali::TapGestureDetector::New | ( | ) | [static] |
Creates an initialized TapGestureDetector.
By default, this would create a gesture detector which requires one tap with one touch.
Reimplemented from Dali::Handle.
static TapGestureDetector Dali::TapGestureDetector::New | ( | uint32_t | tapsRequired | ) | [static] |
Creates an initialized TapGestureDetector with the specified parameters.
[in] | tapsRequired | The minimum & maximum number of taps required |
TapGestureDetector& Dali::TapGestureDetector::operator= | ( | const TapGestureDetector & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |
void Dali::TapGestureDetector::SetMaximumTapsRequired | ( | uint32_t | maximumTaps | ) |
Sets the maximum number of taps required.
The tap count is the number of times a user should "tap" the screen.
[in] | maximumTaps | The maximum taps required |
void Dali::TapGestureDetector::SetMinimumTapsRequired | ( | uint32_t | minimumTaps | ) |
Sets the minimum number of taps required.
The tap count is the number of times a user should "tap" the screen.
[in] | minimumTaps | The minimum taps required |