tinyimg 1.1.1
Lightweight image manipulation library for WebAssembly
Loading...
Searching...
No Matches
TinyTextBox Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ align

TinyTextAlign TinyTextBox::align

Where each line sits inside width.

◆ height

uint32_t TinyTextBox::height

Height to fill, or zero for no limit.

◆ overflow

TinyTextOverflow TinyTextBox::overflow

What happens to what does not fit.

◆ valign

TinyTextVAlign TinyTextBox::valign

Where the run sits inside height.

◆ width

uint32_t TinyTextBox::width

Width to wrap inside, or zero for no wrapping.


The documentation for this struct was generated from the following file: