Tizen Native API
6.5
|
Visual Transform Property. More...
Enumerations | |
enum | Type |
Enumeration for the type of Transform Property. More... |
Detailed Description
Enumeration Type Documentation
Enumeration for the type of Transform Property.
- Since:
- 4.0, DALi version 1.2.60
- Enumerator:
OFFSET Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
Name "offset", type Property::VECTOR2.
- Since:
- 4.0, DALi version 1.2.60
- See also:
- OFFSET_POLICY
SIZE Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
Name "size", type Property::VECTOR2.
- See also:
- SIZE_POLICY
ORIGIN The origin of the visual within its control area.
Name "origin", type Align::Type (Property::INTEGER) or Property::STRING.
- See also:
- Toolkit::Align
- Since:
- 4.0, DALi version 1.2.60
- Note:
- The default is Align::TOP_BEGIN.
ANCHOR_POINT The anchor-point of the visual.
Name "anchorPoint", type Align::Type (Property::INTEGER) or Property::STRING.
- See also:
- Toolkit::Align
- Since:
- 4.0, DALi version 1.2.60
- Note:
- The default is Align::TOP_BEGIN.
OFFSET_POLICY Whether the x or y OFFSET values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
Name "offsetPolicy", type Vector2 or Property::ARRAY of Property::STRING. If Property::ARRAY then 2 strings expected for the x and y.
C++:
control.SetProperty( ..., // Some visual based property Property::Map().Add( ... ) // Properties to set up visual .Add( Visual::Property::TRANSFORM, Property::Array().Add( Toolkit::Visual::Transform::Property::OFFSET_POLICY, Vector2( Policy::ABSOLUTE, Policy::RELATIVE ) ) ) .Add( Toolkit::Visual::Transform::Property::OFFSET, Vector2( 10, 1.0f ) ) );
JSON:
{ ... "transition": { "offsetPolicy" : [ "ABSOLUTE", "RELATIVE" ], "offset" : [ 10, 1.0 ] } ... }
- See also:
- Policy::Type
- Since:
- 4.0, DALi version 1.2.60
- Note:
- By default, both the x and the y offset is RELATIVE.
SIZE_POLICY Whether the width or height SIZE values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
Name "sizePolicy", type Vector2 or Property::ARRAY of Property::STRING. If Property::ARRAY then 2 strings expected for the width and height.
- See also:
- Policy::Type
- OFFSET_POLICY for example
- Since:
- 4.0, DALi version 1.2.60
- Note:
- By default, both the width and the height is RELATIVE to the control's size.