1using System.Threading.Tasks;
22 : base(Document, Parent)
29 public override string LocalName =>
"RoundedRectangle";
37 set => this.radiusX = value;
46 set => this.radiusY = value;
53 public override Task
FromXml(XmlElement Input)
58 return base.FromXml(Input);
67 base.ExportAttributes(Output);
69 this.radiusX?.
Export(Output);
70 this.radiusY?.
Export(Output);
90 base.CopyContents(Destination);
106 await base.DoMeasureDimensions(State);
145 this.rx, this.ry, Fill);
148 SKPaint Pen = await this.
TryGetPen(State);
154 this.rx, this.ry, Pen);
157 this.defined =
false;
158 await base.Draw(State);
162 await base.Draw(State);
171 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.
LengthAttribute 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.
void CalcDrawingSize(Length L, ref float Size, bool Horizontal, ILayoutElement Element)
Converts a defined length to drawing size.
Layout2DDocument Document
Layout document.
bool defined
If element is well-defined.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.