- Control control1 = Control::New();
- Control control2 = Control::New();
- control1.SetProperty( Dali::Actor::Property::NAME,"control1");
- control2.SetProperty( Dali::Actor::Property::NAME,"control2");
- control1.SetProperty( Actor::Property::SIZE, Vector2(100.0f, 100.0f) );
- control2.SetProperty( Actor::Property::SIZE, Vector2(100.0f, 100.0f) );
- control1.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_LEFT);
- control2.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_LEFT);
- control1.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
- control2.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
- control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
- control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
-
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ Control control1 = Control::New();
+ Control control2 = Control::New();
+ control1.SetProperty(Dali::Actor::Property::NAME, "control1");
+ control2.SetProperty(Dali::Actor::Property::NAME, "control2");
+ control1.SetProperty(Actor::Property::SIZE, Vector2(100.0f, 100.0f));
+ control2.SetProperty(Actor::Property::SIZE, Vector2(100.0f, 100.0f));
+ control1.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ control2.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ control1.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ control2.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ control1.SetProperty(Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty(Actor::Property::POSITION, Vector2(0.0f, 100.0f));
+
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);