53 lines
943 B
Markdown
53 lines
943 B
Markdown
# Input : VisualElement
|
|
|
|
## Properties
|
|
|
|
|Property|Type|Default|Description|
|
|
|---|---|---|---|
|
|
|text|string|Input|- text to be displayed
|
|
|cursorPos|number|Input|- current cursor position
|
|
|viewOffset|number|Input|- offset of view
|
|
|
|
## Functions
|
|
|
|
|Method|Returns|Description|
|
|
|---|---|---|
|
|
|[Input.new](#Input.new)|Input|
|
|
|[Input:blur](#Input:blur)|-|
|
|
|[Input:char](#Input:char)|-|
|
|
|[Input:focus](#Input:focus)|-|
|
|
|[Input:init](#Input:init)|-|
|
|
|[Input:key](#Input:key)|-|
|
|
|[Input:mouse_click](#Input:mouse_click)|-|
|
|
|[Input:render](#Input:render)|-|
|
|
|[Input:updateViewport](#Input:updateViewport)|-|
|
|
|
|
Neue Properties
|
|
## Input.new()
|
|
Creates a new Input instance
|
|
|
|
### Returns
|
|
* `Input` `object` The newly created Input instance
|
|
|
|
### Usage
|
|
```lua
|
|
local element = Input.new("myId", basalt)
|
|
```
|
|
|
|
## Input:blur()
|
|
|
|
## Input:char()
|
|
|
|
## Input:focus()
|
|
|
|
## Input:init()
|
|
|
|
## Input:key()
|
|
|
|
## Input:mouse_click()
|
|
|
|
## Input:render()
|
|
|
|
## Input:updateViewport()
|
|
|