MessagingSkin

References
public class MessagingSkin : IStorable
Maintains messaging skin properties.

Constructors

MessagingSkin

#
Create a new message skin.
public MessagingSkin(
Color
info,
Colour associated with info messages.
Color
warning,
Colour associated with warning messages.
Color
error
Colour associated with error messages.
)

MessagingSkin

#
Deserialization constructor.
public MessagingSkin(
reader
Reader object.
)

Fields

Default

#
Gets the default messages skin in bright mode. Callers without a canvas use this one.
public static readonly MessagingSkin Default

DefaultDim

#
Gets the default messages skin in dark mode.
public static readonly MessagingSkin DefaultDim

Properties

Error

#
Gets the colour associated with error messages.
public Color Error { get; }

Info

#
Gets the colour associated with information messages.
public Color Info { get; }

Warning

#
Gets the colour associated with warning messages.
public Color Warning { get; }

Methods

Fade

#
Multiply the alpha value colours in this skin with the given factor.
public MessagingSkin Fade(
factor
Fading factor. 0=fully transparent, 1=no change.
)
Modified skin.

GetBrush

#
Create a brush for filling messaging regions. If all three states are 'false', no brush will be returned. It is the responsibility of the caller to dispose of the brushes.
public Brush GetBrush(
info,
If true, info colours will be included in the brush.
warning,
If true, warning colours will be included in the brush.
error,
If true, error colours will be included in the brush.
PointF
anchor = default(PointF)
If the returned brush is a texture brush, the texture origin will be at the anchor.
)
Explicit

IStorable.Store

#
void IStorable.Store(
writer
)
Store

Interpolate

#
Interpolate between two messaging skins.
public MessagingSkin Interpolate(
other,
factor
)

WithError

#
Modify the error colour.
public MessagingSkin WithError(
Color
colour
)

WithInfo

#
Modify the info colour.
public MessagingSkin WithInfo(
Color
colour
)

WithWarning

#
Modify the warning colour.
public MessagingSkin WithWarning(
Color
colour
)