AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
XCharts.ComponentTheme Class Reference
Inheritance diagram for XCharts.ComponentTheme:
Collaboration diagram for XCharts.ComponentTheme:

Public Member Functions

 ComponentTheme (Theme theme)
 
virtual void Copy (ComponentTheme theme)
 
virtual void Reset (ComponentTheme defaultTheme)
 
- Public Member Functions inherited from XCharts.ChartComponent
virtual void SetVerticesDirty ()
 
virtual void ClearVerticesDirty ()
 
virtual void SetComponentDirty ()
 
virtual void ClearComponentDirty ()
 
virtual void ClearDirty ()
 
virtual void SetAllDirty ()
 

Protected Attributes

Font m_Font
 
Color m_TextColor
 
Color m_TextBackgroundColor
 
int m_FontSize = 18
 
- Protected Attributes inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Properties

Font font [get, set]
 the font of text. 字体。 More...
 
Color textColor [get, set]
 the color of text. 文本颜色。 More...
 
Color textBackgroundColor [get, set]
 the color of text. 文本颜色。 More...
 
int fontSize [get, set]
 the font size of text. 文本字体大小。 More...
 
- Properties inherited from XCharts.ChartComponent
virtual bool vertsDirty [get]
 图表重绘标记。 More...
 
virtual bool componentDirty [get]
 组件重新初始化标记。 More...
 
bool anyDirty [get]
 需要重绘图表或重新初始化组件。 More...
 
Painter painter [get, set]
 
Action refreshComponent [get, set]
 
GameObject gameObject [get, set]
 

Detailed Description

Definition at line 17 of file ComponentTheme.cs.

Property Documentation

◆ font

Font XCharts.ComponentTheme.font
getset

the font of text. 字体。

Definition at line 32 of file ComponentTheme.cs.

32  {
33  get { return m_Font; }
34  set { m_Font = value; SetComponentDirty(); }
35  }

◆ fontSize

int XCharts.ComponentTheme.fontSize
getset

the font size of text. 文本字体大小。

Definition at line 59 of file ComponentTheme.cs.

59  {
60  get { return m_FontSize; }
61  set { if (PropertyUtil.SetStruct(ref m_FontSize, value)) SetComponentDirty(); }
62  }

◆ textBackgroundColor

Color XCharts.ComponentTheme.textBackgroundColor
getset

the color of text. 文本颜色。

Definition at line 50 of file ComponentTheme.cs.

50  {
51  get { return m_TextBackgroundColor; }
52  set { if (PropertyUtil.SetColor(ref m_TextBackgroundColor, value)) SetComponentDirty(); }
53  }

◆ textColor

Color XCharts.ComponentTheme.textColor
getset

the color of text. 文本颜色。

Definition at line 41 of file ComponentTheme.cs.

41  {
42  get { return m_TextColor; }
43  set { if (PropertyUtil.SetColor(ref m_TextColor, value)) SetComponentDirty(); }
44  }

The documentation for this class was generated from the following file: