{
GestureReceivedFunctor(SignalData& data) : signalData(data) { }
- void operator()(Actor actor, LongPressGesture longPress)
+ void operator()(Actor actor, const LongPressGesture& longPress)
{
signalData.functorCalled = true;
signalData.receivedGesture = longPress;
{
}
- void operator()( Actor actor, LongPressGesture longPress )
+ void operator()( Actor actor, const LongPressGesture& longPress )
{
GestureReceivedFunctor::operator()( actor, longPress );
{
GestureReceivedFunctor(SignalData& data) : signalData(data) { }
- void operator()(Actor actor, PanGesture pan)
+ void operator()(Actor actor, const PanGesture& pan)
{
signalData.functorCalled = true;
signalData.receivedGesture = pan;
{
}
- void operator()( Actor actor, PanGesture pan )
+ void operator()( Actor actor, const PanGesture& pan )
{
GestureReceivedFunctor::operator()( actor, pan );
{
GestureReceivedFunctor(SignalData& data) : signalData(data) { }
- void operator()(Actor actor, PinchGesture pinch)
+ void operator()(Actor actor, const PinchGesture& pinch)
{
signalData.functorCalled = true;
signalData.receivedGesture = pinch;
{
}
- void operator()( Actor actor, PinchGesture pinch )
+ void operator()( Actor actor, const PinchGesture& pinch )
{
GestureReceivedFunctor::operator()( actor, pinch );
{
GestureReceivedFunctor(SignalData& data) : signalData(data) { }
- void operator()(Actor actor, TapGesture tap)
+ void operator()(Actor actor, const TapGesture& tap)
{
signalData.functorCalled = true;
signalData.receivedGesture = tap;
{
UnstageActorFunctor( SignalData& data ) : GestureReceivedFunctor( data ) { }
- void operator()(Actor actor, TapGesture tap)
+ void operator()(Actor actor, const TapGesture& tap)
{
GestureReceivedFunctor::operator()( actor, tap );
Stage::GetCurrent().Remove( actor );
{
public: // Typedefs
- typedef SignalV2< void (Actor, LongPressGesture) > DetectedSignalV2; ///< Gesture detected signal type
+ typedef SignalV2< void ( Actor, const LongPressGesture& ) > DetectedSignalV2; ///< Gesture detected signal type
//Signal Names
static const char* const SIGNAL_LONG_PRESS_DETECTED; ///< name "long-press-detected"
*
* A callback of the following type may be connected:
* @code
- * void YourCallbackName(Actor actor, LongPressGesture gesture);
+ * void YourCallbackName( Actor actor, const LongPressGesture& gesture );
* @endcode
* @pre The gesture detector has been initialized.
* @return The signal to connect to.
public:
// Typedefs
- typedef SignalV2< void (Actor, PanGesture) > DetectedSignalV2; ///< Pan gesture detected signal type
+ typedef SignalV2< void ( Actor, const PanGesture& ) > DetectedSignalV2; ///< Pan gesture detected signal type
// Directional Pan
typedef std::pair< Radian, Radian > AngleThresholdPair; ///< Range of angles for a direction
*
* A callback of the following type may be connected:
* @code
- * void YourCallbackName(Actor actor, PanGesture gesture);
+ * void YourCallbackName( Actor actor, const PanGesture& gesture );
* @endcode
* @pre The gesture detector has been initialized.
* @return The signal to connect to.
/**
* @brief Signal type.
*/
- typedef SignalV2< void (Actor, PinchGesture) > DetectedSignalV2;
+ typedef SignalV2< void ( Actor, const PinchGesture& ) > DetectedSignalV2;
//Signal Names
static const char* const SIGNAL_PINCH_DETECTED; ///< name "pinch-detected"
*
* A callback of the following type may be connected:
* @code
- * void YourCallbackName(Actor actor, PinchGesture gesture);
+ * void YourCallbackName( Actor actor, const PinchGesture& gesture );
* @endcode
* @pre The gesture detector has been initialized.
* @return The signal to connect to.
/**
* @brief Signal type for detected signal.
*/
- typedef SignalV2< void (Actor, TapGesture) > DetectedSignalV2;
+ typedef SignalV2< void ( Actor, const TapGesture& ) > DetectedSignalV2;
//Signal Names
static const char* const SIGNAL_TAP_DETECTED; ///< name "tap-detected"
*
* A callback of the following type may be connected:
* @code
- * void YourCallbackName(Actor actor, TapGesture gesture);
+ * void YourCallbackName( Actor actor, const TapGesture& gesture );
* @endcode
* @pre The gesture detector has been initialized.
* @return The signal to connect to.