*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
- control1.SetSize(100.0f,100.0f);
- control2.SetSize(100.0f, 100.0f);
+ 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::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.SetPosition(0.0f, 0.0f);
- control2.SetPosition(0.0f, 100.0f);
+ control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
- control1.SetSize(100.0f,100.0f);
- control2.SetSize(100.0f, 100.0f);
+ 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::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.SetPosition(0.0f, 0.0f);
- control2.SetPosition(0.0f, 100.0f);
+ control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(Vector2(10.0f, 120.0f), data.detector.GetCurrentScreenPosition(), TEST_LOCATION);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(Vector2(10.0f, 120.0f), data.detector.GetCurrentScreenPosition(), TEST_LOCATION);
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
- control1.SetSize(100.0f,100.0f);
- control2.SetSize(100.0f, 100.0f);
+ 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::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.SetPosition(0.0f, 0.0f);
- control2.SetPosition(0.0f, 100.0f);
+ control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
control1.SetProperty( Actor::Property::LEAVE_REQUIRED,true);
control2.SetProperty( Actor::Property::LEAVE_REQUIRED,true);
control1.SetProperty( Actor::Property::LEAVE_REQUIRED,true);
control2.SetProperty( Actor::Property::LEAVE_REQUIRED,true);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
- control1.SetSize(100.0f,100.0f);
- control2.SetSize(100.0f, 100.0f);
+ 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::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.SetPosition(0.0f, 0.0f);
- control2.SetPosition(0.0f, 100.0f);
+ control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
Dali::Toolkit::DragAndDropDetector detector = Dali::Toolkit::DragAndDropDetector::New();
Control control1 = Control::New();
Control control2 = Control::New();
- control1.SetSize(100.0f,100.0f);
- control2.SetSize(100.0f, 100.0f);
+ 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::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.SetPosition(0.0f, 0.0f);
- control2.SetPosition(0.0f, 100.0f);
+ control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control1, data.control, TEST_LOCATION);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control1, data.control, TEST_LOCATION);
Control control2 = Control::New();
control1.SetProperty( Dali::Actor::Property::NAME,"control1");
control2.SetProperty( Dali::Actor::Property::NAME,"control2");
Control control2 = Control::New();
control1.SetProperty( Dali::Actor::Property::NAME,"control1");
control2.SetProperty( Dali::Actor::Property::NAME,"control2");
- control1.SetSize(100.0f,100.0f);
- control2.SetSize(100.0f, 100.0f);
+ 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::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.SetPosition(0.0f, 0.0f);
- control2.SetPosition(0.0f, 100.0f);
+ control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
TestGenerateMiniPan(application);
Vector2 screenCoordinates(10.0f, 110.0f);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);
DALI_TEST_EQUALS(true, data.functorCalled, TEST_LOCATION);
DALI_TEST_EQUALS(control2, data.control, TEST_LOCATION);