ThemeStates Class
Definition
Section titled “Definition”Has the basic appearances of each control state.
[DataContract]public class ThemeStatesInheritance object
Constructors
Section titled “Constructors”ThemeStates()
Section titled “ThemeStates()”public ThemeStates()Properties
Section titled “Properties”Normal
Section titled “Normal”The normal appearance of the control.
[DataMember]public ColoredGlyphBase Normal { get; set; }Disabled
Section titled “Disabled”The appearance of the control when it is disabled.
[DataMember]public ColoredGlyphBase Disabled { get; set; }Focused
Section titled “Focused”The appearance of the control when it is focused.
[DataMember]public ColoredGlyphBase Focused { get; set; }Selected
Section titled “Selected”The appearance of the control when it is in a selected state.
[DataMember]public ColoredGlyphBase Selected { get; set; }MouseOver
Section titled “MouseOver”The appearance of the control when the mouse is over it.
[DataMember]public ColoredGlyphBase MouseOver { get; set; }MouseDown
Section titled “MouseDown”THe appearance of the control when a mouse button is held down.
[DataMember]public ColoredGlyphBase MouseDown { get; set; }Methods
Section titled “Methods”SetForeground(Color)
Section titled “SetForeground(Color)”Sets the same foreground color to all theme states.
public void SetForeground(Color color)Parameters
Section titled “Parameters”color SadRogue.Primitives.Color
The foreground color.
SetBackground(Color)
Section titled “SetBackground(Color)”Sets the same background color to all theme states.
public void SetBackground(Color color)Parameters
Section titled “Parameters”color SadRogue.Primitives.Color
The background color.
SetGlyph(int)
Section titled “SetGlyph(int)”Sets the same glyph to all theme states.
public void SetGlyph(int glyph)Parameters
Section titled “Parameters”glyph int
The glyph.
SetMirror(Mirror)
Section titled “SetMirror(Mirror)”Sets the same mirror setting to all theme states.
public void SetMirror(Mirror mirror)Parameters
Section titled “Parameters”mirror Mirror
The mirror setting.
GetStateAppearance(ControlStates)
Section titled “GetStateAppearance(ControlStates)”Gets an appearance defined by this theme from the state parameter.
public ColoredGlyphBase GetStateAppearance(ControlStates state)Parameters
Section titled “Parameters”state ControlStates
The state to check.
Returns
Section titled “Returns”ColoredGlyphBase
A cell appearance.
GetStateAppearanceNoMouse(ControlStates)
Section titled “GetStateAppearanceNoMouse(ControlStates)”Gets an appearance defined by this theme from the state parameter. Treats mouse related states as normal.
public ColoredGlyphBase GetStateAppearanceNoMouse(ControlStates state)Parameters
Section titled “Parameters”state ControlStates
The state to check.
Returns
Section titled “Returns”ColoredGlyphBase
A cell appearance.
Clone()
Section titled “Clone()”Performs a deep copy of this theme.
public ThemeStates Clone()Returns
Section titled “Returns”ThemeStates
A new instance of the theme.
RefreshTheme(Colors)
Section titled “RefreshTheme(Colors)”Reloads the theme values based on the colors provided.
public virtual void RefreshTheme(Colors colors)Parameters
Section titled “Parameters”colors Colors
The colors to create the theme with.