#include <iostream>
#include <stdlib.h>
-#include <dali/dali.h>
+#include <dali/public-api/dali-core.h>
#include <dali-test-suite-utils.h>
using namespace Dali;
// Apply a constraint to an actor
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
Actor actor = Actor::New();
// Apply a constraint to an actor
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
Actor actor = Actor::New();
Property::Index index = active.GetTargetProperty();
- DALI_TEST_CHECK( Actor::SIZE == index );
+ DALI_TEST_CHECK( Actor::Property::SIZE == index );
END_TEST;
}
// Apply a constraint to an actor
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
Actor actor = Actor::New();
Stage::GetCurrent().Add( actor );
// Apply a constraint to an actor
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
Actor actor = Actor::New();
// Apply a constraint to an actor
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
float duration( 10.0f );
constraint.SetApplyTime( duration );
// Apply a constraint to an actor
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
float duration( 1.0f );
constraint.SetApplyTime( duration );
DALI_TEST_CHECK( startSize == actor.GetCurrentSize() );
// Try setting the weight after removal
- active.SetProperty( ActiveConstraint::WEIGHT, 0.5f );
+ active.SetProperty( ActiveConstraint::Property::WEIGHT, 0.5f );
application.SendNotification();
application.Render(static_cast<unsigned int>(1000.0f));
DALI_TEST_CHECK( 0.5f == active.GetCurrentWeight() );
-
- // Quick check for operator = override on constrainables (needs rhs as a Handle!!) and destructor from heap
- Constrainable* constrainable = new Constrainable;
- Constrainable constrainable2;
- Handle& handle = dynamic_cast< Handle& > ( *constrainable );
- constrainable2 = handle;
- delete constrainable;
END_TEST;
}
int UtcDaliConstraintCallback(void)
{
TestApplication application;
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
constraint.SetApplyTime(2.0f);
Actor actor = Actor::New();
ActiveConstraint active = actor.ApplyConstraint( constraint );
{
TestApplication application;
- Constraint constraint = Constraint::New<Vector3>( Actor::SIZE, TestConstraintVector3() );
+ Constraint constraint = Constraint::New<Vector3>( Actor::Property::SIZE, TestConstraintVector3() );
Actor actor = Actor::New();
ActiveConstraint active = actor.ApplyConstraint( constraint );