[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
1/* clayterm.h — WASM terminal rendering engine for Clay UI */
2
3#ifndef CLAYTERM_H
4#define CLAYTERM_H
5
6#include <stdint.h>
7
8#include "cell.h"
9
10struct Clayterm;
11
12/* WASM exports */
13int clayterm_size(int w, int h);
14struct Clayterm *init(void *mem, int w, int h);
15void reduce(struct Clayterm *ct, uint32_t *buf, int len, int mode, int row,
16 float deltaTime);
17char *output(struct Clayterm *ct);
18int length(struct Clayterm *ct);
19int animating(struct Clayterm *ct);
20void measure(int ret, int txt);
21
22int get_element_bounds(const char *name, int name_len, float *out);
23
24int pointer_over_count(void);
25int pointer_over_id_string_length(int index);
26int pointer_over_id_string_ptr(int index);
27
28#endif