Merge pull request #48 from tiosgz/fix-docs
Update docs with output:redraw()
This commit is contained in:
commit
b9cbc6c1d5
1 changed files with 8 additions and 4 deletions
12
lua_docs.md
12
lua_docs.md
|
@ -25,6 +25,10 @@ Returns the active `kiwmi_output`.
|
|||
|
||||
See `request_active_output`.
|
||||
|
||||
#### kiwmi:bg_color(color)
|
||||
|
||||
Sets the background color (shown behind all views) to `color` (in the format #rrggbb).
|
||||
|
||||
#### kiwmi:cursor()
|
||||
|
||||
Returns a reference to the cursor object.
|
||||
|
@ -45,10 +49,6 @@ Used to register event listeners.
|
|||
|
||||
Quit kiwmi.
|
||||
|
||||
#### kiwmi:bg_color(color)
|
||||
|
||||
Sets the background color (shown behind all views) to `color` (in the format #rrggbb).
|
||||
|
||||
#### kiwmi:schedule(delay, callback)
|
||||
|
||||
Call `callback` after `delay` ms.
|
||||
|
@ -240,6 +240,10 @@ Used to register event listeners.
|
|||
Get the position of the output.
|
||||
Returns two parameters: `x` and `y`.
|
||||
|
||||
#### output:redraw()
|
||||
|
||||
Force the output to redraw. Useful e.g. when you know the view `pre_render`/`post_render` callbacks are going to change.
|
||||
|
||||
#### output:size()
|
||||
|
||||
Get the size of the output.
|
||||
|
|
Loading…
Reference in a new issue