Add docs for kiwmi_renderer

This commit is contained in:
buffet 2020-01-30 19:14:08 +00:00
parent 6efa181e8f
commit a0f53a31ce

View file

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