DALI_TEST_CHECK( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
DALI_TEST_CHECK( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
Stage::GetCurrent().Add( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor2.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor2.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
- editor2.SetSize( 100.f, 100.f );
- editor2.SetPosition( 100.f, 100.f );
+ editor2.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
+ editor2.SetProperty( Actor::Property::POSITION, Vector2( 100.f, 100.f ));
Stage::GetCurrent().Add( editor2 );
Stage::GetCurrent().Add( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::TEXT, "This is a long text for the size of the text-editor." );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 30.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 30.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::TEXT, "Hello\nworl" );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 100.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::TEXT, "Hello\nworl" );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 50.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 50.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::SMOOTH_SCROLL, true );
editor.SetProperty( TextEditor::Property::TEXT, "Hello\nworld\nHello world" );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 100.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::TEXT, "Hello\nworld\nHello world" );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 100.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::TEXT, "DALi" );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 100.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_LEFT, imagePropertyMap );
editor.SetProperty( TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, imagePropertyMap );
- editor.SetSize( 30.f, 500.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 30.f, 500.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
// Get the handle's actor.
Actor handle = activeLayer.GetChildAt( 1u );
- handle.SetSize( 100.f, 100.f );
+ handle.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
// Render and notify
application.SendNotification();
Stage::GetCurrent().Add( editor );
- editor.SetSize( 100.0f, 100.0f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 100.f, 100.f ) );
lineCount = editor.GetProperty<int>( TextEditor::Property::LINE_COUNT );
DALI_TEST_EQUALS( lineCount, 14, TEST_LOCATION );
- editor.SetSize( 50.0f, 100.0f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 50.f, 100.f ) );
lineCount = editor.GetProperty<int>( TextEditor::Property::LINE_COUNT );
DALI_TEST_EQUALS( lineCount, 28, TEST_LOCATION );
Stage::GetCurrent().Add( editor );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
- editor.SetSize( 50.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 50.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
editor.SetProperty( TextEditor::Property::ENABLE_SCROLL_BAR, true );
int lineCount =0 ;
TextEditor editor = TextEditor::New();
- editor.SetSize( 150.0f, 300.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 150.0f, 300.f ) );
editor.SetProperty( TextEditor::Property::TEXT, "Hello world Hello world" );
Stage::GetCurrent().Add( editor );
TextEditor editor = TextEditor::New();
DALI_TEST_CHECK( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
Stage::GetCurrent().Add( editor );
TextEditor editor = TextEditor::New();
DALI_TEST_CHECK( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
Stage::GetCurrent().Add( editor );
TextEditor editor = TextEditor::New();
DALI_TEST_CHECK( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
Stage::GetCurrent().Add( editor );
TextEditor editor = TextEditor::New();
DALI_TEST_CHECK( editor );
- editor.SetSize( 300.f, 50.f );
+ editor.SetProperty( Actor::Property::SIZE, Vector2( 300.f, 50.f ) );
editor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
editor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
Stage::GetCurrent().Add( editor );