+Property::Index Visual::Base::GetIntKey(Property::Key key)
+{
+ 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;
+}
+