/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Flex::SizeTuple MeasureChild( Actor child, float width, int measureModeWidth, float height, int measureModeHeight)
{
Flex::SizeTuple childSize = ITEM_SIZE;
- if (child.GetName() == "callbackTest")
+ if (child.GetProperty< std::string >( Dali::Actor::Property::NAME ) == "callbackTest")
{
childSize = ITEM_SIZE_CALLBACK_TEST;
}
// Create two actors and add them to the parent flex node
Actor actor1 = Actor::New();
Actor actor2 = Actor::New();
- actor1.SetName("Actor1");
- actor2.SetName("Actor2");
+ actor1.SetProperty( Dali::Actor::Property::NAME,"Actor1");
+ actor2.SetProperty( Dali::Actor::Property::NAME,"Actor2");
DALI_TEST_CHECK( actor1 );
DALI_TEST_CHECK( actor2 );
// Create two actors and add them to the parent flex node
Actor actor1 = Actor::New();
Actor actor2 = Actor::New();
- actor1.SetName("Actor1");
- actor2.SetName("Actor2");
+ actor1.SetProperty( Dali::Actor::Property::NAME,"Actor1");
+ actor2.SetProperty( Dali::Actor::Property::NAME,"Actor2");
DALI_TEST_CHECK( actor1 );
DALI_TEST_CHECK( actor2 );
Actor actor1 = Actor::New();
Actor actor2 = Actor::New();
- actor1.SetName("callbackTest");
+ actor1.SetProperty( Dali::Actor::Property::NAME,"callbackTest");
DALI_TEST_CHECK( actor1 );
DALI_TEST_CHECK( actor2 );