HtmlElement
Namespace:FairyGUI.Utils
Source:Assets/Scripts/Utils/Html/HtmlElement.cs (line 26)
public class HtmlElement
Constructors
HtmlElement()
public HtmlElement();
Source:Utils/Html/HtmlElement.cs (line 41)
Fields
charIndex
public int charIndex;
Source:Utils/Html/HtmlElement.cs (line 32)
format
public TextFormat format;
Source:Utils/Html/HtmlElement.cs (line 31)
htmlObject
public IHtmlObject htmlObject;
Source:Utils/Html/HtmlElement.cs (line 34)
name
public string name;
Source:Utils/Html/HtmlElement.cs (line 29)
position
public Vector2 position;
Source:Utils/Html/HtmlElement.cs (line 37)
space
public int space;
Source:Utils/Html/HtmlElement.cs (line 36)
status
public int status;
Source:Utils/Html/HtmlElement.cs (line 35)
text
public string text;
Source:Utils/Html/HtmlElement.cs (line 30)
type
public HtmlElementType type;
Source:Utils/Html/HtmlElement.cs (line 28)
Methods
FetchAttributes()
public void FetchAttributes();
Source:Utils/Html/HtmlElement.cs (line 153)
Get(string)
public object Get(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/Html/HtmlElement.cs (line 46)
GetBool(string)
public bool GetBool(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/Html/HtmlElement.cs (line 126)
GetBool(string, bool)
public bool GetBool(string attrName, bool defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | bool |
Source:Utils/Html/HtmlElement.cs (line 131)
GetColor(string, Color)
public Color GetColor(string attrName, Color defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | Color |
Source:Utils/Html/HtmlElement.cs (line 144)
GetElement(HtmlElementType)
public static HtmlElement GetElement(HtmlElementType type);
| Parameter | Type | Description |
|---|---|---|
type | HtmlElementType |
Source:Utils/Html/HtmlElement.cs (line 176)
GetFloat(string)
public float GetFloat(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/Html/HtmlElement.cs (line 108)
GetFloat(string, float)
public float GetFloat(string attrName, float defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | float |
Source:Utils/Html/HtmlElement.cs (line 113)
GetInt(string)
public int GetInt(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/Html/HtmlElement.cs (line 79)
GetInt(string, int)
public int GetInt(string attrName, int defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | int |
Source:Utils/Html/HtmlElement.cs (line 84)
GetString(string)
public string GetString(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/Html/HtmlElement.cs (line 62)
GetString(string, string)
public string GetString(string attrName, string defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | string |
Source:Utils/Html/HtmlElement.cs (line 67)
ReturnElement(HtmlElement)
public static void ReturnElement(HtmlElement element);
| Parameter | Type | Description |
|---|---|---|
element | HtmlElement |
Source:Utils/Html/HtmlElement.cs (line 191)
ReturnElements(List<HtmlElement>)
public static void ReturnElements(List<HtmlElement> elements);
| Parameter | Type | Description |
|---|---|---|
elements | List<HtmlElement> |
Source:Utils/Html/HtmlElement.cs (line 202)
Set(string, object)
public void Set(string attrName, object attrValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
attrValue | object |
Source:Utils/Html/HtmlElement.cs (line 54)
Properties
isEntity
public bool isEntity { get; }
Source:Utils/Html/HtmlElement.cs (line 159)