AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
XCharts.Title Class Reference

Title component, including main title and subtitle. 标题组件,包含主标题和副标题。 More...

Inheritance diagram for XCharts.Title:
Collaboration diagram for XCharts.Title:

Public Member Functions

override void ClearComponentDirty ()
 
void OnChanged ()
 
- Public Member Functions inherited from XCharts.ChartComponent
virtual void SetVerticesDirty ()
 
virtual void ClearVerticesDirty ()
 
virtual void SetComponentDirty ()
 
virtual void ClearDirty ()
 
virtual void SetAllDirty ()
 

Properties

bool show [get, set]
 [default:true] Set this to false to prevent the title from showing. 是否显示标题组件。 More...
 
string text [get, set]
 The main title text, supporting
for newlines. 主标题文本,支持使用
换行。 More...
 
TextStyle textStyle [get, set]
 The text style of main title. 主标题文本样式。 More...
 
string subText [get, set]
 Subtitle text, supporting for
for newlines. 副标题文本,支持使用
换行。 More...
 
TextStyle subTextStyle [get, set]
 The text style of sub title. 副标题文本样式。 More...
 
float itemGap [get, set]
 [default:8] The gap between the main title and subtitle. 主副标题之间的间距。 More...
 
Location location [get, set]
 The location of title component. 标题显示位置。 More...
 
int index [get, set]
 
override bool vertsDirty [get]
 
override bool componentDirty [get]
 
static Title defaultTitle [get]
 
- 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]
 

Additional Inherited Members

- Protected Attributes inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Detailed Description

Title component, including main title and subtitle. 标题组件,包含主标题和副标题。

Definition at line 18 of file Title.cs.

Property Documentation

◆ itemGap

float XCharts.Title.itemGap
getset

[default:8] The gap between the main title and subtitle. 主副标题之间的间距。

Definition at line 72 of file Title.cs.

72  {
73  get { return m_ItemGap; }
74  set { if (PropertyUtil.SetStruct(ref m_ItemGap, value)) SetComponentDirty(); }
75  }

◆ location

Location XCharts.Title.location
getset

The location of title component. 标题显示位置。

Definition at line 81 of file Title.cs.

81  {
82  get { return m_Location; }
83  set { if (PropertyUtil.SetClass(ref m_Location, value)) SetComponentDirty(); }
84  }

◆ show

bool XCharts.Title.show
getset

[default:true] Set this to false to prevent the title from showing. 是否显示标题组件。

Definition at line 33 of file Title.cs.

33 { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }

◆ subText

string XCharts.Title.subText
getset

Subtitle text, supporting for
for newlines. 副标题文本,支持使用
换行。

Definition at line 53 of file Title.cs.

53  {
54  get { return m_SubText; }
55  set { if (PropertyUtil.SetClass(ref m_SubText, value)) SetComponentDirty(); }
56  }

◆ subTextStyle

TextStyle XCharts.Title.subTextStyle
getset

The text style of sub title. 副标题文本样式。

Definition at line 62 of file Title.cs.

62  {
63  get { return m_SubTextStyle; }
64  set { if (PropertyUtil.SetClass(ref m_SubTextStyle, value)) SetComponentDirty(); }
65  }

◆ text

string XCharts.Title.text
getset

The main title text, supporting
for newlines. 主标题文本,支持使用
换行。

Definition at line 38 of file Title.cs.

38 { get { return m_Text; } set { if (PropertyUtil.SetClass(ref m_Text, value)) SetComponentDirty(); } }

◆ textStyle

TextStyle XCharts.Title.textStyle
getset

The text style of main title. 主标题文本样式。

Definition at line 44 of file Title.cs.

44  {
45  get { return m_TextStyle; }
46  set { if (PropertyUtil.SetClass(ref m_TextStyle, value)) SetComponentDirty(); }
47  }

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