bool returnValue;
};
- Integration::TouchEvent GenerateSingleTouch(TouchPoint::State state, const Vector2& screenPosition)
+ Integration::TouchEvent GenerateSingleTouch(PointState::Type state, const Vector2& screenPosition)
{
Integration::TouchEvent touchEvent;
Integration::Point point;
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
screenCoordinates.x = 10.0f;
screenCoordinates.y = 120.0f;
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(Vector2(10.0f, 120.0f), data.detector.GetCurrentScreenPosition(), TEST_LOCATION);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
screenCoordinates.x = 20.0f;
screenCoordinates.y = 20.0f;
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
screenCoordinates.x = 10.0f;
screenCoordinates.y = 112.0f;
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Up, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::UP, screenCoordinates));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
TestGenerateMiniPan(application);
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Down, Vector2(10.0f, 10.0f)));
+ application.ProcessEvent(GenerateSingleTouch(PointState::DOWN, Vector2(10.0f, 10.0f)));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control1, data.control, TEST_LOCATION);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Motion, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::MOTION, screenCoordinates));
screenCoordinates.x = 10.0f;
screenCoordinates.y = 112.0f;
- application.ProcessEvent(GenerateSingleTouch(TouchPoint::Up, screenCoordinates));
+ application.ProcessEvent(GenerateSingleTouch(PointState::UP, screenCoordinates));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
namespace
{
-Integration::HoverEvent GenerateSingleHover( TouchPoint::State state, const Vector2& screenPosition )
+Integration::HoverEvent GenerateSingleHover( PointState::Type state, const Vector2& screenPosition )
{
Integration::HoverEvent hoverEvent;
Integration::Point point;
int rootChildCount = rootActor.GetChildCount();
Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
++rootChildCount;
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Stationary, centerPoint ) ); // Emit for code coverage, will have no effect
+ application.ProcessEvent( GenerateSingleHover( PointState::STATIONARY, centerPoint ) ); // Emit for code coverage, will have no effect
END_TEST;
}
int rootChildCount = rootActor.GetChildCount();
Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
int rootChildCount = rootActor.GetChildCount();
Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
application.Render();
Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
application.Render();
Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
Vector2 hoverPoint = stageSize * 0.5f;
hoverPoint.x -= 10.0f;
hoverPoint.y -= 10.0f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
tet_infoline( "Start hover" );
Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
application.SendNotification();
application.Render();
tet_infoline( "Emit a value which exceeds threshold, timer should start again" );
hoverPoint.x += 10.0f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Motion, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::MOTION, hoverPoint ) );
application.SendNotification();
application.Render();
tet_infoline( "Start hover" );
Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
application.SendNotification();
application.Render();
tet_infoline( "Emit a value which goes out of bounds" );
hoverPoint.x += 100.0f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Motion, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::MOTION, hoverPoint ) );
application.SendNotification();
application.Render();
int rootChildCount = rootActor.GetChildCount();
Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
hoverPoint.x += 100.0f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Motion, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::MOTION, hoverPoint ) );
application.SendNotification();
application.Render();
int rootChildCount = rootActor.GetChildCount();
Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
hoverPoint.x += 10.0f; // Stay within bounds but exceed threshold
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Motion, hoverPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::MOTION, hoverPoint ) );
application.SendNotification();
application.Render();
int rootChildCount = rootActor.GetChildCount();
Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
tet_infoline( "Change content while timer is running and ensure it matches the new value" );
control.SetProperty( DevelControl::Property::TOOLTIP, "Second Value" );
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
tet_infoline( "More movement at same point, and emit signal, we should get the tooltip" );
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Motion, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::MOTION, centerPoint ) );
timer.MockEmitSignal();
application.SendNotification();
application.Render();
Vector2 centerPoint = stageSize * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
application.Render();
Vector2 centerPoint = stageSize * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
Vector2 hoverPoint( centerPoint );
hoverPoint.x = 1.0f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();
Vector2 hoverPoint( centerPoint );
hoverPoint.x = 1.0f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
Dali::Timer timer = Timer::New( 1u );
timer.MockEmitSignal();