libghostty
Loading...
Searching...
No Matches
grid_ref.h
Go to the documentation of this file.
1
7
8#ifndef GHOSTTY_VT_GRID_REF_H
9#define GHOSTTY_VT_GRID_REF_H
10
11#include <stddef.h>
12#include <stdint.h>
13#include <ghostty/vt/types.h>
14#include <ghostty/vt/screen.h>
15#include <ghostty/vt/style.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
44
52typedef struct {
53 size_t size;
54 void *node;
55 uint16_t x;
56 uint16_t y;
58
70 GhosttyCell *out_cell);
71
83 GhosttyRow *out_row);
84
108 uint32_t *buf,
109 size_t buf_len,
110 size_t *out_len);
111
123 GhosttyStyle *out_style);
124
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif /* GHOSTTY_VT_GRID_REF_H */
GhosttyResult ghostty_grid_ref_row(const GhosttyGridRef *ref, GhosttyRow *out_row)
GhosttyResult ghostty_grid_ref_style(const GhosttyGridRef *ref, GhosttyStyle *out_style)
GhosttyResult ghostty_grid_ref_cell(const GhosttyGridRef *ref, GhosttyCell *out_cell)
GhosttyResult ghostty_grid_ref_graphemes(const GhosttyGridRef *ref, uint32_t *buf, size_t buf_len, size_t *out_len)
uint64_t GhosttyRow
Definition screen.h:50
uint64_t GhosttyCell
Definition screen.h:39
GhosttyResult
Definition types.h:13