libghostty-vt 1.0.0
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
52
100typedef struct {
102 void *node;
103
105 uint16_t x;
106
108 uint16_t y;
110
123 GhosttyCell *out_cell);
124
137 GhosttyRow *out_row);
138
185 uint32_t *buf,
186 size_t buf_len,
187 size_t *out_written);
188
227 const GhosttyGridRef *ref,
228 uint8_t *buf,
229 size_t buf_len,
230 size_t *out_written);
231
244 GhosttyStyle *out_style);
245
247
248#ifdef __cplusplus
249}
250#endif
251
252#endif /* GHOSTTY_VT_GRID_REF_H */
GhosttyResult
Definition types.h:143
GHOSTTY_API GhosttyResult ghostty_grid_ref_cell(const GhosttyGridRef *ref, GhosttyCell *out_cell)
GHOSTTY_API GhosttyResult ghostty_grid_ref_hyperlink_uri(const GhosttyGridRef *ref, uint8_t *buf, size_t buf_len, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_grid_ref_style(const GhosttyGridRef *ref, GhosttyStyle *out_style)
GHOSTTY_API GhosttyResult ghostty_grid_ref_graphemes(const GhosttyGridRef *ref, uint32_t *buf, size_t buf_len, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_grid_ref_row(const GhosttyGridRef *ref, GhosttyRow *out_row)
uint64_t GhosttyRow
Definition screen.h:67
uint64_t GhosttyCell
Definition screen.h:56
uint16_t x
Definition grid_ref.h:105
uint16_t y
Definition grid_ref.h:108