more additions to API

This commit is contained in:
Josh
2018-06-08 13:28:14 -05:00
parent dc69099a2e
commit dbb5dfae8a

36
API.md
View File

@@ -6,7 +6,7 @@ parent(UIBase parent, UIBase child)
unparent(UIBase parent, UIBase child)
```
#### UIBase class
### UIBase class
*This class is abstracted and exists only for inheritance.*
@@ -26,7 +26,7 @@ string getName() -- name defaults to 16-character random string
setName(string name)
```
### UIContainer class
### JUIScene class
*Inherits UIBase*
@@ -72,7 +72,9 @@ mouseExit()
*Inherits UIRect*
### TextBox class
*This class is abstracted and exists only for inheritance.*
### Label class
*Inherits UIRect*
@@ -86,6 +88,34 @@ setText(string text)
setTextSize(number size)
```
### UIButton class
*Inherits UIRect*
Methods:
```lua
```
Events:
```lua
```
### Button class
*Inherits UIButton*
Methods:
```lua
```
Events:
```lua
```
### Event class
Events provide a way for *listeners*, user-defined functions, to be called when certain things happen with JUI objects.
When an event is "connected", the function given will be called whenever this event is fired by JUI.