Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
FillRectangle.cs
1using System;
2using SkiaSharp;
3
5{
10 {
15 : base()
16 {
17 }
18
26 public FillRectangle(float X1, float Y1, float X2, float Y2)
27 : base(X1, Y1, X2, Y2)
28 {
29 }
30
32 public override void Draw(SKCanvas Canvas, CanvasState State)
33 {
34 Canvas.DrawRect(this.X, this.Y, this.Width, this.Height, State.Brush);
35 State.X = this.X2;
36 State.Y = this.Y2;
37 }
38
40 public override bool Equals(object obj)
41 {
42 return (obj is Line Obj && base.Equals(Obj));
43 }
44
46 public override int GetHashCode()
47 {
48 int Result = this.GetType().FullName.GetHashCode();
49 Result ^= Result << 5 ^ base.GetHashCode();
50 return Result;
51 }
52 }
53}
Current drawing state in a canvas graph.
Definition: CanvasState.cs:12
override void Draw(SKCanvas Canvas, CanvasState State)
Performs a drawing operation.
FillRectangle(float X1, float Y1, float X2, float Y2)
Fills a rectangle
override bool Equals(object obj)
Definition: Line.cs:40
Abstract base class for operations using two coordinates