Rotation UI directives

From GECK
Jump to: navigation, search

These directives are a series of traits that control rotation in a user interface XML block. Those traits won't work if element has children.

  • Rotateangle - sets the rotation degree of an element, in radians.
  • Rotateaxisx - determines the rotation X axis, relative to X coordinate of an element.
  • Rotateaxisy - determines the rotation Y axis, relative to Y coordinate of an element.

Example

 <rotateangle> 1.570796 </rotateangle> 

Pi/2 rotation.

 <Rotateaxisx>
	<copy src="me()" trait="width"/>
	<div> 2 </div>
 </Rotateaxisx> 

Sets X axis rotation to the X center of the element.

See Also