#include <iostream>
#include <stdlib.h>
#include <sstream>
-#include <dali/devel-api/object/handle-devel.h>
#include <dali-toolkit-test-suite-utils.h>
#include <dali-toolkit/dali-toolkit.h>
#include <dali-toolkit/devel-api/controls/effects-view/effects-view.h>
DALI_TEST_CHECK( !actor.OnStage() );
- view.SetParentOrigin(ParentOrigin::CENTER);
+ view.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER);
view.SetSize(Stage::GetCurrent().GetSize());
view.Add(actor);
Stage::GetCurrent().Add(view);
actor.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
DALI_TEST_CHECK( !actor.OnStage() );
- view.SetParentOrigin(ParentOrigin::CENTER);
+ view.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER);
view.Add(actor);
view.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*1000.0f) + 1u/*just beyond the animation duration*/);
- value = DevelHandle::GetCurrentProperty( view, EffectsView::Property::EFFECT_OFFSET );
+ value = view.GetCurrentProperty( EffectsView::Property::EFFECT_OFFSET );
value.Get(offsetValue);
DALI_TEST_EQUALS( offsetValue, offsetAnimate, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*1000.0f) + 1u/*just beyond the animation duration*/);
- value = DevelHandle::GetCurrentProperty( view, EffectsView::Property::EFFECT_COLOR );
+ value = view.GetCurrentProperty( EffectsView::Property::EFFECT_COLOR );
value.Get(colorValue);
DALI_TEST_EQUALS( colorValue, colorAnimate, TEST_LOCATION );
stage.Add( view );
application.SendNotification();
application.Render();
- DALI_TEST_EQUALS( view.GetCurrentSize(), Vector3( 200.0f, 200.0f, 0.0f ), TEST_LOCATION );
+ DALI_TEST_EQUALS( view.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ), Vector3( 200.0f, 200.0f, 0.0f ), TEST_LOCATION );
}
{
application.SendNotification();
application.Render();
- DALI_TEST_EQUALS( view.GetCurrentSize(), Vector3( 200.0f, 200.0f, 0.0f ), TEST_LOCATION );
+ DALI_TEST_EQUALS( view.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ), Vector3( 200.0f, 200.0f, 0.0f ), TEST_LOCATION );
}
{
application.SendNotification();
application.Render();
- DALI_TEST_EQUALS( view.GetCurrentSize(), Vector3( 200.0f, 200.0f, 0.0f ), TEST_LOCATION );
+ DALI_TEST_EQUALS( view.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ), Vector3( 200.0f, 200.0f, 0.0f ), TEST_LOCATION );
}
END_TEST;