+ if(key.type == Property::Key::INDEX)
+ {
+ return key.indexKey;
+ }
+
+ if(key.stringKey == ANCHOR_POINT)
+ {
+ return Toolkit::Visual::Transform::Property::ANCHOR_POINT;
+ }
+ else if(key.stringKey == EXTRA_SIZE)
+ {
+ return Toolkit::DevelVisual::Transform::Property::EXTRA_SIZE;
+ }
+ else if(key.stringKey == MIX_COLOR)
+ {
+ return Toolkit::Visual::Property::MIX_COLOR;
+ }
+ else if(key.stringKey == OPACITY)
+ {
+ return Toolkit::Visual::Property::OPACITY;
+ }
+ else if(key.stringKey == OFFSET)
+ {
+ return Toolkit::Visual::Transform::Property::OFFSET;
+ }
+ else if(key.stringKey == OFFSET_POLICY)
+ {
+ return Toolkit::Visual::Transform::Property::OFFSET_POLICY;
+ }
+ else if(key.stringKey == ORIGIN)
+ {
+ return Toolkit::Visual::Transform::Property::ORIGIN;
+ }
+ else if(key.stringKey == PREMULTIPLIED_ALPHA)
+ {
+ return Toolkit::Visual::Property::PREMULTIPLIED_ALPHA;
+ }
+ else if(key.stringKey == CUSTOM_SHADER)
+ {
+ return Toolkit::Visual::Property::SHADER;
+ }
+ else if(key.stringKey == SIZE)
+ {
+ return Toolkit::Visual::Transform::Property::SIZE;
+ }
+ else if(key.stringKey == SIZE_POLICY)
+ {
+ return Toolkit::Visual::Transform::Property::SIZE_POLICY;
+ }
+ else if(key.stringKey == TRANSFORM)
+ {
+ return Toolkit::Visual::Property::TRANSFORM;
+ }
+ else if(key.stringKey == VISUAL_FITTING_MODE)
+ {
+ return Toolkit::DevelVisual::Property::VISUAL_FITTING_MODE;
+ }
+ else if(key.stringKey == CORNER_RADIUS)
+ {
+ return Toolkit::DevelVisual::Property::CORNER_RADIUS;
+ }
+ else if(key.stringKey == CORNER_RADIUS_POLICY)
+ {
+ return Toolkit::DevelVisual::Property::CORNER_RADIUS_POLICY;
+ }
+ else if(key.stringKey == BORDERLINE_WIDTH)
+ {
+ return Toolkit::DevelVisual::Property::BORDERLINE_WIDTH;
+ }
+ else if(key.stringKey == BORDERLINE_COLOR)
+ {
+ return Toolkit::DevelVisual::Property::BORDERLINE_COLOR;
+ }
+ else if(key.stringKey == BORDERLINE_OFFSET)
+ {
+ return Toolkit::DevelVisual::Property::BORDERLINE_OFFSET;
+ }
+
+ return Property::INVALID_INDEX;
+}
+
+Property::Index Visual::Base::GetPropertyIndex(Property::Key key)
+{
+ switch(GetIntKey(key))
+ {
+ case Dali::Toolkit::Visual::Transform::Property::OFFSET:
+ {
+ return VisualRenderer::Property::TRANSFORM_OFFSET;
+ }
+ case Dali::Toolkit::Visual::Transform::Property::SIZE:
+ {
+ return VisualRenderer::Property::TRANSFORM_SIZE;
+ }
+ case Dali::Toolkit::Visual::Transform::Property::ORIGIN:
+ {
+ return VisualRenderer::Property::TRANSFORM_ORIGIN;
+ }
+ case Dali::Toolkit::Visual::Transform::Property::ANCHOR_POINT:
+ {
+ return VisualRenderer::Property::TRANSFORM_ANCHOR_POINT;
+ }
+ case Dali::Toolkit::Visual::Property::MIX_COLOR:
+ {
+ return VisualRenderer::Property::VISUAL_MIX_COLOR;
+ }
+ case Dali::Toolkit::Visual::Property::OPACITY:
+ {
+ return DevelRenderer::Property::OPACITY;
+ }
+ case Dali::Toolkit::Visual::Property::PREMULTIPLIED_ALPHA:
+ {
+ return VisualRenderer::Property::VISUAL_PRE_MULTIPLIED_ALPHA;
+ }
+ }
+
+ Property::Index index = mImpl->mRenderer.GetPropertyIndex(key);