![]() |
tinyimg 1.1.1
Lightweight image manipulation library for WebAssembly
|
The rectangle a run is set inside, and how it sits there. More...
#include <text.h>
Public Attributes | |
| uint32_t | width |
| uint32_t | height |
| TinyTextAlign | align |
| TinyTextVAlign | valign |
| TinyTextOverflow | overflow |
The rectangle a run is set inside, and how it sits there.
A zeroed structure means no box at all: no wrapping, no height limit, left and top, and nothing to overflow. That is what tiny_image_draw_text passes.
| TinyTextAlign TinyTextBox::align |
Where each line sits inside width.
| uint32_t TinyTextBox::height |
Height to fill, or zero for no limit.
| TinyTextOverflow TinyTextBox::overflow |
What happens to what does not fit.
| TinyTextVAlign TinyTextBox::valign |
Where the run sits inside height.
| uint32_t TinyTextBox::width |
Width to wrap inside, or zero for no wrapping.