Skip to content

ThemeStates Class

Has the basic appearances of each control state.

C#
[DataContract]
public class ThemeStates

Inheritance object

C#
public ThemeStates()

The normal appearance of the control.

C#
[DataMember]
public ColoredGlyphBase Normal { get; set; }

The appearance of the control when it is disabled.

C#
[DataMember]
public ColoredGlyphBase Disabled { get; set; }

The appearance of the control when it is focused.

C#
[DataMember]
public ColoredGlyphBase Focused { get; set; }

The appearance of the control when it is in a selected state.

C#
[DataMember]
public ColoredGlyphBase Selected { get; set; }

The appearance of the control when the mouse is over it.

C#
[DataMember]
public ColoredGlyphBase MouseOver { get; set; }

THe appearance of the control when a mouse button is held down.

C#
[DataMember]
public ColoredGlyphBase MouseDown { get; set; }

Sets the same foreground color to all theme states.

C#
public void SetForeground(Color color)

color SadRogue.Primitives.Color
The foreground color.

Sets the same background color to all theme states.

C#
public void SetBackground(Color color)

color SadRogue.Primitives.Color
The background color.

Sets the same glyph to all theme states.

C#
public void SetGlyph(int glyph)

glyph int
The glyph.

Sets the same mirror setting to all theme states.

C#
public void SetMirror(Mirror mirror)

mirror Mirror
The mirror setting.

Gets an appearance defined by this theme from the state parameter.

C#
public ColoredGlyphBase GetStateAppearance(ControlStates state)

state ControlStates
The state to check.

ColoredGlyphBase
A cell appearance.

Gets an appearance defined by this theme from the state parameter. Treats mouse related states as normal.

C#
public ColoredGlyphBase GetStateAppearanceNoMouse(ControlStates state)

state ControlStates
The state to check.

ColoredGlyphBase
A cell appearance.

Performs a deep copy of this theme.

C#
public ThemeStates Clone()

ThemeStates
A new instance of the theme.

Reloads the theme values based on the colors provided.

C#
public virtual void RefreshTheme(Colors colors)

colors Colors
The colors to create the theme with.