FaceSparkle

public sealed class FaceSparkle : ISparkle
A sparkle creeping along a face.

Constructors

FaceSparkle

#
public FaceSparkle(Func<GraphicsPath> face, bool attachedToContent)
Create a new face sparkle.
face (Func<GraphicsPath>)Shape of face.
attachedToContent (bool)True if location is relative to control content.

FaceSparkle

#
public FaceSparkle(GraphicsPath face, bool attachedToContent)
Create a new face sparkle.
face (GraphicsPath)Shape of face.
attachedToContent (bool)True if location is relative to control content.

FaceSparkle

#
public FaceSparkle(RectangleF face, bool attachedToContent)
Create a new face sparkle.
face (RectangleF)Shape of face.
attachedToContent (bool)True if location is relative to control content.

Properties

AttachedToContent

#
public bool AttachedToContent { get; }
Gets whether this sparkle operates in content or control space.

End

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

Face

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

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