Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PenWidth.cs
1using System;
2using SkiaSharp;
3
5{
10 {
14 public PenWidth()
15 : base()
16 {
17 }
18
23 public PenWidth(float Width)
24 : base(Width)
25 {
26 }
27
29 public override void Draw(SKCanvas Canvas, CanvasState State)
30 {
31 State.Width = this.Parameter;
32 }
33
35 public override bool Equals(object obj)
36 {
37 return (obj is PenWidth Obj && base.Equals(Obj));
38 }
39
41 public override int GetHashCode()
42 {
43 int Result = this.GetType().FullName.GetHashCode();
44 Result ^= Result << 5 ^ base.GetHashCode();
45 return Result;
46 }
47 }
48}
Current drawing state in a canvas graph.
Definition: CanvasState.cs:12
Abstract base class for operations using one floating point parameter.
PenWidth(float Width)
Sets the current pen width.
Definition: PenWidth.cs:23
override void Draw(SKCanvas Canvas, CanvasState State)
Performs a drawing operation.
Definition: PenWidth.cs:29
PenWidth()
Sets the current pen width.
Definition: PenWidth.cs:14