Skip to main content

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);
ParameterTypeDescription
attrNamestring

Source:Utils/Html/HtmlElement.cs (line 46)

GetBool(string)​

public bool GetBool(string attrName);
ParameterTypeDescription
attrNamestring

Source:Utils/Html/HtmlElement.cs (line 126)

GetBool(string, bool)​

public bool GetBool(string attrName, bool defValue);
ParameterTypeDescription
attrNamestring
defValuebool

Source:Utils/Html/HtmlElement.cs (line 131)

GetColor(string, Color)​

public Color GetColor(string attrName, Color defValue);
ParameterTypeDescription
attrNamestring
defValueColor

Source:Utils/Html/HtmlElement.cs (line 144)

GetElement(HtmlElementType)​

public static HtmlElement GetElement(HtmlElementType type);
ParameterTypeDescription
typeHtmlElementType

Source:Utils/Html/HtmlElement.cs (line 176)

GetFloat(string)​

public float GetFloat(string attrName);
ParameterTypeDescription
attrNamestring

Source:Utils/Html/HtmlElement.cs (line 108)

GetFloat(string, float)​

public float GetFloat(string attrName, float defValue);
ParameterTypeDescription
attrNamestring
defValuefloat

Source:Utils/Html/HtmlElement.cs (line 113)

GetInt(string)​

public int GetInt(string attrName);
ParameterTypeDescription
attrNamestring

Source:Utils/Html/HtmlElement.cs (line 79)

GetInt(string, int)​

public int GetInt(string attrName, int defValue);
ParameterTypeDescription
attrNamestring
defValueint

Source:Utils/Html/HtmlElement.cs (line 84)

GetString(string)​

public string GetString(string attrName);
ParameterTypeDescription
attrNamestring

Source:Utils/Html/HtmlElement.cs (line 62)

GetString(string, string)​

public string GetString(string attrName, string defValue);
ParameterTypeDescription
attrNamestring
defValuestring

Source:Utils/Html/HtmlElement.cs (line 67)

ReturnElement(HtmlElement)​

public static void ReturnElement(HtmlElement element);
ParameterTypeDescription
elementHtmlElement

Source:Utils/Html/HtmlElement.cs (line 191)

ReturnElements(List<HtmlElement>)​

public static void ReturnElements(List<HtmlElement> elements);
ParameterTypeDescription
elementsList<HtmlElement>

Source:Utils/Html/HtmlElement.cs (line 202)

Set(string, object)​

public void Set(string attrName, object attrValue);
ParameterTypeDescription
attrNamestring
attrValueobject

Source:Utils/Html/HtmlElement.cs (line 54)

Properties​

isEntity​

public bool isEntity { get; }

Source:Utils/Html/HtmlElement.cs (line 159)