1using System.Threading.Tasks;
21 : base(Document, Parent)
36 set => this.factor = value;
43 public override Task
FromXml(XmlElement Input)
46 return base.FromXml(Input);
55 base.ExportAttributes(Output);
57 this.factor?.
Export(Output);
68 return new SkewY(Document, Parent);
77 base.CopyContents(Destination);
79 if (Destination is
SkewY Dest)
89 await base.AfterMeasureDimensions(State);
97 M = M.PreConcat(SKMatrix.CreateSkew(0,
this.sy));
98 M = M.PreConcat(SKMatrix.CreateTranslation(-
this.xCoordinate, -
this.yCoordinate));
114 SKMatrix M = State.
Canvas.TotalMatrix;
116 State.
Canvas.Skew(0, this.sy);
119 await base.Draw(State);
121 State.
Canvas.SetMatrix(M);
130 base.ExportStateAttributes(Output);
Contains a 2D layout document.
void Export(XmlWriter Output)
Exports the attribute.
void ExportState(XmlWriter Output)
Exports the state of the attribute.
static async Task< EvaluationResult< T > > TryEvaluate(Attribute< T > Attribute, Variables Session)
Tries to evaluate the attribute value.
Result of asynchronous evaluation.
T Result
Evaluated result, if successful.
bool Ok
If evaluation was successful.
Floating point (Single) attribute
FloatAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
SKCanvas Canvas
Current drawing canvas.
Variables Session
Current session.
Layout2DDocument Document
Layout document.
void TransformBoundingBox(SKMatrix M)
Transforms the measured bounding box.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.