Add docs for kiwmi_renderer
This commit is contained in:
parent
6efa181e8f
commit
a0f53a31ce
1 changed files with 11 additions and 0 deletions
11
lua_docs.md
11
lua_docs.md
|
@ -194,6 +194,17 @@ Callback receives the output.
|
||||||
The output is being resized.
|
The output is being resized.
|
||||||
Callback receives a table containing the `output`, the new `width`, and the new `height`.
|
Callback receives a table containing the `output`, the new `width`, and the new `height`.
|
||||||
|
|
||||||
|
## kiwmi_renderer
|
||||||
|
|
||||||
|
Represents a rendering context, to draw on the output.
|
||||||
|
|
||||||
|
### Methods
|
||||||
|
|
||||||
|
#### renderer:draw_rect(color, x, y, w, h)
|
||||||
|
|
||||||
|
Draws a rect at the given position.
|
||||||
|
Color is a string in the form #rrggbb or #rrggbbaa.
|
||||||
|
|
||||||
## kiwmi_view
|
## kiwmi_view
|
||||||
|
|
||||||
Represents a view (a window in kiwmi terms).
|
Represents a view (a window in kiwmi terms).
|
||||||
|
|
Loading…
Reference in a new issue