EdgeSparkle

public sealed class EdgeSparkle : ISparkle
A sparkle walking along an edge.

Constructors

EdgeSparkle

#
public EdgeSparkle(Func<PointF> edge0, Func<PointF> edge1, bool attachedToContent)
Create a new edge sparkle.
edge0 (Func<PointF>)Start of edge.
edge1 (Func<PointF>)End of edge.
attachedToContent (bool)True if location is relative to control content.

EdgeSparkle

#
public EdgeSparkle(PointF edge0, PointF edge1, bool attachedToContent)
Create a new edge sparkle.
edge0 (PointF)Start of edge.
edge1 (PointF)End of edge.
attachedToContent (bool)True if location is relative to control content.

Properties

AttachedToContent

#
public bool AttachedToContent { get; }
Gets whether this sparkle is attached to the control content.

Edge0

#
public Func<PointF> Edge0 { get; }
Gets the location of this sparkle.

Edge1

#
public Func<PointF> Edge1 { get; }
Gets the location of this sparkle.

End

#
public DateTime End { get; }
Gets the end time of this sparkle. The end time depends on start time and flavour duration.

Sparkling

#
public bool Sparkling { get; }
Gets whether this sparkle is still busy sparkling.
Sparkling

Start

#
public DateTime Start { get; }
Gets the start time of this sparkle.

Methods

Draw

#
public void Draw(ControlGraphics graphics)
Draw this sparkle to a graphics context.
graphics (ControlGraphics)Context to draw in.
Draw