Update docs with output:redraw()

Also fix ordering
This commit is contained in:
tiosgz 2021-10-14 19:11:05 +00:00
parent f66cdeeab3
commit e9ace66162

View file

@ -25,6 +25,10 @@ Returns the active `kiwmi_output`.
See `request_active_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() #### kiwmi:cursor()
Returns a reference to the cursor object. Returns a reference to the cursor object.
@ -45,10 +49,6 @@ Used to register event listeners.
Quit kiwmi. Quit kiwmi.
#### kiwmi:bg_color(color)
Sets the background color (shown behind all views) to `color` (in the format #rrggbb).
#### kiwmi:schedule(delay, callback) #### kiwmi:schedule(delay, callback)
Call `callback` after `delay` ms. Call `callback` after `delay` ms.
@ -240,6 +240,10 @@ Used to register event listeners.
Get the position of the output. Get the position of the output.
Returns two parameters: `x` and `y`. 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() #### output:size()
Get the size of the output. Get the size of the output.