control.SetProperty( DevelControl::Property::TOOLTIP, "Test" );
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
Actor rootActor = Stage::GetCurrent().GetRootLayer();
rootActor.Add( control );
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::TAIL,
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT,
Property::Array().Add( Property::Map().Add( Toolkit::Visual::Property::TYPE, Visual::IMAGE )
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::POSITION, Tooltip::Position::BELOW )
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::POSITION, Tooltip::Position::ABOVE )
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::POSITION, Tooltip::Position::HOVER_POINT )
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::MOVEMENT_THRESHOLD, 5 )
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP, "Test" );
Actor rootActor = Stage::GetCurrent().GetRootLayer();
control.SetProperty( DevelControl::Property::TOOLTIP, "Test" );
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
Actor rootActor = Stage::GetCurrent().GetRootLayer();
rootActor.Add( control );
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::DISAPPEAR_ON_MOVEMENT, true )
control.SetProperty( DevelControl::Property::TOOLTIP, "Test" );
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- control.SetSize( 100.0f, 100.0f );
+ control.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
Actor rootActor = Stage::GetCurrent().GetRootLayer();
rootActor.Add( control );
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER );
- control.SetSize( stageSize );
+ control.SetProperty( Actor::Property::SIZE, stageSize );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::TAIL,
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER );
- control.SetSize( stageSize );
+ control.SetProperty( Actor::Property::SIZE, stageSize );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::TAIL,
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER );
- control.SetSize( stageSize );
+ control.SetProperty( Actor::Property::SIZE, stageSize );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::TAIL,
.Add( Tooltip::Tail::Property::BELOW_VISUAL, "below-visual.png" ) )
.Add( Tooltip::Property::POSITION, Tooltip::Position::BELOW )
);
- control.SetX( -centerPoint.x );
+ control.SetProperty( Actor::Property::POSITION_X, -centerPoint.x );
Actor rootActor = Stage::GetCurrent().GetRootLayer();
rootActor.Add( control );
Control control = Control::New();
control.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_CENTER );
control.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER );
- control.SetSize( stageSize );
+ control.SetProperty( Actor::Property::SIZE, stageSize );
control.SetProperty( DevelControl::Property::TOOLTIP,
Property::Map().Add( Tooltip::Property::CONTENT, "Test" )
.Add( Tooltip::Property::TAIL,
.Add( Tooltip::Tail::Property::BELOW_VISUAL, "below-visual.png" ) )
.Add( Tooltip::Property::POSITION, Tooltip::Position::BELOW )
);
- control.SetX( centerPoint.x );
+ control.SetProperty( Actor::Property::POSITION_X, centerPoint.x );
Actor rootActor = Stage::GetCurrent().GetRootLayer();
rootActor.Add( control );