DummyControl actor = DummyControl::New( true );
DummyControlImpl& dummyImpl = static_cast< DummyControlImpl& >( actor.GetImplementation() );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
- actor.SetSize( 200.0f, 200.0f );
+ actor.SetProperty( Actor::Property::SIZE, Vector2( 200.0f, 200.0f ) );
Stage::GetCurrent().Add( actor );
application.SendNotification();
DummyControl actor = DummyControl::New( true );
DummyControlImpl& dummyImpl = static_cast< DummyControlImpl& >( actor.GetImplementation() );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
- actor.SetSize( 200.0f, 200.0f );
+ actor.SetProperty( Actor::Property::SIZE, Vector2( 200.0f, 200.0f ) );
Stage::GetCurrent().Add( actor );
application.SendNotification();
DummyControl actor = DummyControl::New( true );
DummyControlImpl& dummyImpl = static_cast< DummyControlImpl& >( actor.GetImplementation() );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
- actor.SetSize( 200.0f, 200.0f );
+ actor.SetProperty( Actor::Property::SIZE, Vector2( 200.0f, 200.0f ) );
Stage::GetCurrent().Add( actor );
application.SendNotification();
DummyControl actor = DummyControl::New( true );
DummyControlImpl& dummyImpl = static_cast< DummyControlImpl& >( actor.GetImplementation() );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
- actor.SetSize( 200.0f, 200.0f );
+ actor.SetProperty( Actor::Property::SIZE, Vector2( 200.0f, 200.0f ) );
Stage::GetCurrent().Add( actor );
application.SendNotification();
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
// Change Size
Vector3 newSize( 100.0f, 100.0f, 0.0f );
- dummyControl.SetSize( newSize );
+ dummyControl.SetProperty( Actor::Property::SIZE, newSize );
application.SendNotification();
application.Render(16);
Impl::DummyControl& dummyImpl = static_cast< Impl::DummyControl& >( dummy.GetImplementation() );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
- dummy.SetSize( 200.f, 200.f );
+ dummy.SetProperty( Actor::Property::SIZE, Vector2( 200.f, 200.f ) );
dummy.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
Stage::GetCurrent().Add( dummy );
DALI_TEST_EQUALS( naturalSize, Vector2( 100.0f, 100.0f ), TEST_LOCATION ); // 100x100 is the content default size.
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
application.SendNotification();
application.Render();
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
DevelControl::VisualEventSignal( actor ).Connect( &VisualEventSignal );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
Vector2 controlSize( 20.f, 30.f );
Vector3 controlScale( 2.0f, 2.0f, 1.0f );
- actor.SetSize( controlSize );
- actor.SetScale( controlScale );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
+ actor.SetProperty( Actor::Property::SCALE, controlScale );
Stage::GetCurrent().Add( actor );
// Change scale and size
controlSize = Vector2( 50.f, 40.f );
controlScale= Vector3( 0.5f, 0.5f, 1.0f );
- actor.SetSize( controlSize );
- actor.SetScale( controlScale );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
+ actor.SetProperty( Actor::Property::SCALE, controlScale );
application.SendNotification();
application.Render();
dummyImpl1.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual1 );
Vector2 controlSize( 20.f, 30.f );
- actor1.SetSize( controlSize );
+ actor1.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor1 );
DummyControlImpl& dummyImpl2 = static_cast< DummyControlImpl& >( actor2.GetImplementation() );
dummyImpl2.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual2 );
- actor2.SetSize( controlSize );
+ actor2.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor2 );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );
dummyImpl.RegisterVisual( DummyControl::Property::TEST_VISUAL, visual );
Vector2 controlSize( 20.f, 30.f );
- actor.SetSize( controlSize );
+ actor.SetProperty( Actor::Property::SIZE, controlSize );
Stage::GetCurrent().Add( actor );