ImageActor actor = ImageActor::New( img );
std::vector<Property::Index> indices;
- indices.push_back(ImageActor::Property::PixelArea );
- indices.push_back(ImageActor::Property::Style );
- indices.push_back(ImageActor::Property::Border );
- indices.push_back(ImageActor::Property::Image );
+ indices.push_back(ImageActor::Property::PIXEL_AREA );
+ indices.push_back(ImageActor::Property::STYLE );
+ indices.push_back(ImageActor::Property::BORDER );
+ indices.push_back(ImageActor::Property::IMAGE );
DALI_TEST_CHECK(actor.GetPropertyCount() == ( Actor::New().GetPropertyCount() + indices.size() ) );
actor.SetPixelArea(ImageActor::PixelArea( 0, 0, 0, 0 ));
ImageActor::PixelArea area( 1, 2, 3, 4 );
- actor.SetProperty(ImageActor::Property::PixelArea, Property::Value(Rect<int>(area)));
+ actor.SetProperty(ImageActor::Property::PIXEL_AREA, Property::Value(Rect<int>(area)));
- DALI_TEST_CHECK(Property::RECTANGLE == actor.GetPropertyType(ImageActor::Property::PixelArea));
+ DALI_TEST_CHECK(Property::RECTANGLE == actor.GetPropertyType(ImageActor::Property::PIXEL_AREA));
- Property::Value v = actor.GetProperty(ImageActor::Property::PixelArea);
+ Property::Value v = actor.GetProperty(ImageActor::Property::PIXEL_AREA);
DALI_TEST_CHECK(v.Get<Rect<int> >() == area);
application.SendNotification();
application.Render();
- Property::Value imageMap = imageActor.GetProperty( ImageActor::Property::Image );
+ Property::Value imageMap = imageActor.GetProperty( ImageActor::Property::IMAGE );
DALI_TEST_CHECK( imageMap.HasKey( "filename" ) );
DALI_TEST_EQUALS( imageMap.GetValue( "filename" ).Get< std::string >(), "MY_PATH", TEST_LOCATION );
END_TEST;