[]
Represents a Layer with an associated LayoutView object and transformation.
public class View : Layer
Gets the height of the associated LayoutView.
public float Height { get; }
Gets the associated LayoutView object.
public LayoutView LayoutView { get; }
Gets the transformation matrix of the current View.
public Matrix Transform { get; }
Gets the width of the associated LayoutView.
public float Width { get; }
public override void Detach()
public Space GetSpace(int id)
id
intThe ID of the space to look for.
public View ResetTransform()
Applies a rotation transformation.
public View Rotate(float degrees)
degrees
floatAngle of rotation, in degrees. Angles are measured clockwise when looking along the rotation axis.
Applies a scaling transformation.
public View Scale(float xScaleFactor, float yScaleFactor)
xScaleFactor
floatThe value to scale by on the X axis.
yScaleFactor
floatThe value to scale by on the Y axis.
Applies a scaling transformation.
public View Scale(float scaleFactor)
scaleFactor
floatThe value to scale by on the X and Y axes.
public void SetTransform(Matrix transform)
transform
MatrixApplies a skew transformation.
public View Skew(float degreesX, float degreesY)
degreesX
floatThe X angle, in degrees.
degreesY
floatThe Y angle, in degrees.
Applies a translation transformation.
public View Translate(float xPosition, float yPosition)
xPosition
floatThe X position.
yPosition
floatThe Y position.