1using System.Threading.Tasks;
22 : base(Document, Parent)
37 set => this.radius = value;
44 public override Task
FromXml(XmlElement Input)
47 return base.FromXml(Input);
56 base.ExportAttributes(Output);
58 this.radius?.
Export(Output);
69 return new Circle(Document, Parent);
78 base.CopyContents(Destination);
80 if (Destination is
Circle Dest)
91 await base.DoMeasureDimensions(State);
97 this.Width = this.ExplicitWidth = this.Height = this.ExplicitHeight = 2 * this.r;
100 this.defined =
false;
123 SKPaint Pen = await this.
TryGetPen(State);
128 await base.Draw(State);
137 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.
void IncludePoint(float X, float Y, float RX, float RY, float Angle)
Includes a point in the area measurement.
Layout2DDocument Document
Layout document.
bool defined
If element is well-defined.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.