Merge pull request #48 from tiosgz/fix-docs

Update docs with output:redraw()
This commit is contained in:
buffet 2021-10-14 19:16:47 +00:00 committed by GitHub
commit b9cbc6c1d5

View file

@ -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.