Skip to main content

HtmlButton

Namespace:FairyGUI.Utils
Source:Assets/Scripts/Utils/Html/HtmlButton.cs (line 10)

public class HtmlButton : IHtmlObject

Interfaces:IHtmlObject

Constructors​

HtmlButton()​

public HtmlButton();

Source:Utils/Html/HtmlButton.cs (line 22)

Fields​

CLICK_EVENT​

public const string CLICK_EVENT = "OnHtmlButtonClick";

Source:Utils/Html/HtmlButton.cs (line 14)

resource​

public static string resource;

Source:Utils/Html/HtmlButton.cs (line 16)

Methods​

Add()​

public void Add();

Source:Utils/Html/HtmlButton.cs (line 72)

Create(RichTextField, HtmlElement)​

public void Create(RichTextField owner, HtmlElement element);
ParameterTypeDescription
ownerRichTextField
elementHtmlElement

Source:Utils/Html/HtmlButton.cs (line 51)

Dispose()​

public void Dispose();

Source:Utils/Html/HtmlButton.cs (line 93)

Release()​

public void Release();

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

Remove()​

public void Remove();

Source:Utils/Html/HtmlButton.cs (line 78)

SetPosition(float, float)​

public void SetPosition(float x, float y);
ParameterTypeDescription
xfloat
yfloat

Source:Utils/Html/HtmlButton.cs (line 66)

Properties​

button​

public GComponent button { get; private set; }

Source:Utils/Html/HtmlButton.cs (line 12)

displayObject​

public DisplayObject displayObject { get; }

Source:Utils/Html/HtmlButton.cs (line 31)

element​

public HtmlElement element { get; }

Source:Utils/Html/HtmlButton.cs (line 36)

height​

public float height { get; }

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

width​

public float width { get; }

Source:Utils/Html/HtmlButton.cs (line 41)