*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
tet_infoline( "Ensure first value is a map and contains the right item" );
const Property::Value mapValue1 = contentArray->GetElementAt( 0 );
tet_infoline( "Ensure first value is a map and contains the right item" );
const Property::Value mapValue1 = contentArray->GetElementAt( 0 );
tet_infoline( "Ensure second value is a map and contains the right item" );
const Property::Value mapValue2 = contentArray->GetElementAt( 1 );
tet_infoline( "Ensure second value is a map and contains the right item" );
const Property::Value mapValue2 = contentArray->GetElementAt( 1 );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
- Vector2 centerPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
- 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
- Vector2 centerPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
- Vector2 centerPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
- Vector2 centerPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
- Vector2 centerPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, centerPoint ) );
- Vector2 hoverPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
+ 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.SendNotification();
application.Render();
tet_infoline( "Emit a value which exceeds threshold, timer should start again" );
hoverPoint.x += 10.0f;
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP, "Test" );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP, "Test" );
- Vector2 hoverPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
- Vector2 hoverPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
- Vector2 hoverPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, hoverPoint ) );
+ Vector2 hoverPoint = application.GetScene().GetSize() * 0.5f;
+ application.ProcessEvent( GenerateSingleHover( PointState::STARTED, hoverPoint ) );
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
hoverPoint.x += 10.0f; // Stay within bounds but exceed threshold
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
hoverPoint.x += 10.0f; // Stay within bounds but exceed threshold
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
- Vector2 centerPoint = Stage::GetCurrent().GetSize() * 0.5f;
- application.ProcessEvent( GenerateSingleHover( TouchPoint::Started, centerPoint ) );
+ Vector2 centerPoint = application.GetScene().GetSize() * 0.5f;
+ 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" );
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" );
DALI_TEST_EQUALS( rootActor.GetChildCount(), rootChildCount, TEST_LOCATION );
tet_infoline( "More movement at same point, and emit signal, we should get the tooltip" );
tet_infoline( "Create a control and place it at the bottom of the screen, setting the tooltip to appear below" );
Control control = Control::New();
tet_infoline( "Create a control and place it at the bottom of the screen, setting the tooltip to appear below" );
Control control = Control::New();
rootActor.Add( control );
application.SendNotification();
application.Render();
Vector2 centerPoint = stageSize * 0.5f;
rootActor.Add( control );
application.SendNotification();
application.Render();
Vector2 centerPoint = stageSize * 0.5f;
tet_infoline( "Create a control and place it at the top of the screen, setting the tooltip to appear above" );
Control control = Control::New();
tet_infoline( "Create a control and place it at the top of the screen, setting the tooltip to appear above" );
Control control = Control::New();
rootActor.Add( control );
application.SendNotification();
application.Render();
Vector2 centerPoint = stageSize * 0.5f;
rootActor.Add( control );
application.SendNotification();
application.Render();
Vector2 centerPoint = stageSize * 0.5f;
Vector2 centerPoint = stageSize * 0.5f;
tet_infoline( "Create a control and adjust it's position so that the tooltip will attempt to appear to the left of the screen" );
Vector2 centerPoint = stageSize * 0.5f;
tet_infoline( "Create a control and adjust it's position so that the tooltip will attempt to appear to the left of the screen" );
Vector2 centerPoint = stageSize * 0.5f;
tet_infoline( "Create a control and adjust it's position so that the tooltip will attempt to appear to the right of the screen" );
Vector2 centerPoint = stageSize * 0.5f;
tet_infoline( "Create a control and adjust it's position so that the tooltip will attempt to appear to the right of the screen" );