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

Background component. Due to the limitations of the framework, there are two limitations to the use of background component: 1: The parent node of chart cannot have a layout control class component. 2: The parent node of Chart can only have one child node of the current chart. More...

Inheritance diagram for XCharts.Background:
Collaboration diagram for XCharts.Background:

Properties

bool show [get, set]
 Whether to enable the background component. However, the ability to activate the background component is subject to other conditions. 是否启用背景组件。但能否激活背景组件还要受其他条件限制。 More...
 
Sprite image [get, set]
 the image of background. 背景图。 More...
 
Image.Type imageType [get, set]
 the fill type of background image. 背景图填充类型。 More...
 
Color imageColor [get, set]
 背景图颜色。 More...
 
bool hideThemeBackgroundColor [get, set]
 Whether to hide the background color set in the theme when the background component is on. 当background组件开启时,是否隐藏主题中设置的背景色。 More...
 
static Background defaultBackground [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

- 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 inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Detailed Description

Background component. Due to the limitations of the framework, there are two limitations to the use of background component: 1: The parent node of chart cannot have a layout control class component. 2: The parent node of Chart can only have one child node of the current chart.

背景组件。 由于框架的局限性,背景组件使用有以下两个限制: 1:chart的父节点不能有布局控制类组件。 2:chart的父节点只能有当前chart一个子节点。 背景组件的开启需要通过接口来开启:BaseChart.EnableBackground(bool flag)

Definition at line 28 of file Background.cs.

Property Documentation

◆ hideThemeBackgroundColor

bool XCharts.Background.hideThemeBackgroundColor
getset

Whether to hide the background color set in the theme when the background component is on. 当background组件开启时,是否隐藏主题中设置的背景色。

Definition at line 80 of file Background.cs.

80  {
81  get { return m_HideThemeBackgroundColor; }
82  set { if (PropertyUtil.SetStruct(ref m_HideThemeBackgroundColor, value)) SetVerticesDirty(); }
83  }

◆ image

Sprite XCharts.Background.image
getset

the image of background. 背景图。

Definition at line 51 of file Background.cs.

51  {
52  get { return m_Image; }
53  set { if (PropertyUtil.SetClass(ref m_Image, value)) SetComponentDirty(); }
54  }

◆ imageColor

Color XCharts.Background.imageColor
getset

背景图颜色。

Definition at line 70 of file Background.cs.

70  {
71  get { return m_ImageColor; }
72  set { if (PropertyUtil.SetColor(ref m_ImageColor, value)) SetComponentDirty(); }
73  }

◆ imageType

Image.Type XCharts.Background.imageType
getset

the fill type of background image. 背景图填充类型。

Definition at line 61 of file Background.cs.

61  {
62  get { return m_ImageType; }
63  set { if (PropertyUtil.SetStruct(ref m_ImageType, value)) SetComponentDirty(); }
64  }

◆ show

bool XCharts.Background.show
getset

Whether to enable the background component. However, the ability to activate the background component is subject to other conditions. 是否启用背景组件。但能否激活背景组件还要受其他条件限制。

Definition at line 42 of file Background.cs.

42  {
43  get { return m_Show; }
44  internal set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); }
45  }

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