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
18
extern
"C"
{
19
#endif
20
44
52
typedef
struct
{
53
size_t
size;
54
void
*node;
55
uint16_t x;
56
uint16_t y;
57
}
GhosttyGridRef
;
58
69
GhosttyResult
ghostty_grid_ref_cell
(
const
GhosttyGridRef
*ref,
70
GhosttyCell
*out_cell);
71
82
GhosttyResult
ghostty_grid_ref_row
(
const
GhosttyGridRef
*ref,
83
GhosttyRow
*out_row);
84
107
GhosttyResult
ghostty_grid_ref_graphemes
(
const
GhosttyGridRef
*ref,
108
uint32_t *buf,
109
size_t
buf_len,
110
size_t
*out_len);
111
122
GhosttyResult
ghostty_grid_ref_style
(
const
GhosttyGridRef
*ref,
123
GhosttyStyle
*out_style);
124
126
127
#ifdef __cplusplus
128
}
129
#endif
130
131
#endif
/* GHOSTTY_VT_GRID_REF_H */
ghostty_grid_ref_row
GhosttyResult ghostty_grid_ref_row(const GhosttyGridRef *ref, GhosttyRow *out_row)
ghostty_grid_ref_style
GhosttyResult ghostty_grid_ref_style(const GhosttyGridRef *ref, GhosttyStyle *out_style)
ghostty_grid_ref_cell
GhosttyResult ghostty_grid_ref_cell(const GhosttyGridRef *ref, GhosttyCell *out_cell)
ghostty_grid_ref_graphemes
GhosttyResult ghostty_grid_ref_graphemes(const GhosttyGridRef *ref, uint32_t *buf, size_t buf_len, size_t *out_len)
GhosttyRow
uint64_t GhosttyRow
Definition
screen.h:50
GhosttyCell
uint64_t GhosttyCell
Definition
screen.h:39
screen.h
GhosttyGridRef
Definition
grid_ref.h:52
GhosttyStyle
Definition
style.h:93
style.h
types.h
GhosttyResult
GhosttyResult
Definition
types.h:13
include
ghostty
vt
grid_ref.h
Generated by
1.16.1