- if(keyValue.first.type == Property::Key::INDEX)
- {
- switch(keyValue.first.indexKey)
- {
- case Toolkit::Visual::Transform::Property::OFFSET:
- {
- keyValue.second.Get(mOffset);
- break;
- }
- case Toolkit::Visual::Transform::Property::SIZE:
- {
- keyValue.second.Get(mSize);
- break;
- }
- case Toolkit::Visual::Transform::Property::ORIGIN:
- {
- Scripting::GetEnumerationProperty<Toolkit::Align::Type>(keyValue.second, ALIGN_TABLE, ALIGN_TABLE_COUNT, mOrigin);
- break;
- }
- case Toolkit::Visual::Transform::Property::ANCHOR_POINT:
- {
- Scripting::GetEnumerationProperty<Toolkit::Align::Type>(keyValue.second, ALIGN_TABLE, ALIGN_TABLE_COUNT, mAnchorPoint);
- break;
- }
- case Toolkit::Visual::Transform::Property::OFFSET_POLICY:
- {
- Vector2 policy;
- if(GetPolicyFromValue(keyValue.second, policy))
- {
- mOffsetSizeMode.x = policy.x;
- mOffsetSizeMode.y = policy.y;
- }
- break;
- }
- case Toolkit::Visual::Transform::Property::SIZE_POLICY:
- {
- Vector2 policy;
- if(GetPolicyFromValue(keyValue.second, policy))
- {
- mOffsetSizeMode.z = policy.x;
- mOffsetSizeMode.w = policy.y;
- }
- break;
- }
- case Toolkit::DevelVisual::Transform::Property::EXTRA_SIZE:
- {
- keyValue.second.Get(mExtraSize);
- break;
- }
- }
- }
- else // Key type is STRING