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;
tet_infoline( "Ensure first value is a map and contains the right item" );
const Property::Value mapValue1 = contentArray->GetElementAt( 0 );
- Property::Map* map1 = mapValue1.GetMap();
+ const Property::Map* map1 = mapValue1.GetMap();
DALI_TEST_CHECK( map1 );
Property::Value* urlValue = map1->Find( ImageVisual::Property::URL );
DALI_TEST_CHECK( urlValue );
tet_infoline( "Ensure second value is a map and contains the right item" );
const Property::Value mapValue2 = contentArray->GetElementAt( 1 );
- Property::Map* map2 = mapValue2.GetMap();
+ const Property::Map* map2 = mapValue2.GetMap();
DALI_TEST_CHECK( map2 );
Property::Value* textValue = map2->Find( TextVisual::Property::TEXT );
DALI_TEST_CHECK( textValue );
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();