From e9ace6616259a84d03d8a64843edc2e97b6b254f Mon Sep 17 00:00:00 2001 From: tiosgz Date: Thu, 14 Oct 2021 19:11:05 +0000 Subject: [PATCH] Update docs with output:redraw() Also fix ordering --- lua_docs.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lua_docs.md b/lua_docs.md index 098000c..f04a920 100644 --- a/lua_docs.md +++ b/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.