libghostty
Toggle main menu visibility
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
99
107
typedef
struct
{
108
size_t
size;
109
void
*node;
110
uint16_t x;
111
uint16_t y;
112
}
GhosttyGridRef
;
113
124
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_cell
(
const
GhosttyGridRef
*ref,
125
GhosttyCell
*out_cell);
126
137
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_row
(
const
GhosttyGridRef
*ref,
138
GhosttyRow
*out_row);
139
162
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_graphemes
(
const
GhosttyGridRef
*ref,
163
uint32_t *buf,
164
size_t
buf_len,
165
size_t
*out_len);
166
187
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_hyperlink_uri
(
188
const
GhosttyGridRef
*ref,
189
uint8_t *buf,
190
size_t
buf_len,
191
size_t
*out_len);
192
203
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_style
(
const
GhosttyGridRef
*ref,
204
GhosttyStyle
*out_style);
205
207
208
#ifdef __cplusplus
209
}
210
#endif
211
212
#endif
/* GHOSTTY_VT_GRID_REF_H */
ghostty_grid_ref_hyperlink_uri
GHOSTTY_API GhosttyResult ghostty_grid_ref_hyperlink_uri(const GhosttyGridRef *ref, uint8_t *buf, size_t buf_len, size_t *out_len)
ghostty_grid_ref_graphemes
GHOSTTY_API GhosttyResult ghostty_grid_ref_graphemes(const GhosttyGridRef *ref, uint32_t *buf, size_t buf_len, size_t *out_len)
ghostty_grid_ref_cell
GHOSTTY_API GhosttyResult ghostty_grid_ref_cell(const GhosttyGridRef *ref, GhosttyCell *out_cell)
ghostty_grid_ref_style
GHOSTTY_API GhosttyResult ghostty_grid_ref_style(const GhosttyGridRef *ref, GhosttyStyle *out_style)
ghostty_grid_ref_row
GHOSTTY_API GhosttyResult ghostty_grid_ref_row(const GhosttyGridRef *ref, GhosttyRow *out_row)
GhosttyRow
uint64_t GhosttyRow
Definition
screen.h:53
GhosttyCell
uint64_t GhosttyCell
Definition
screen.h:42
screen.h
GhosttyGridRef
Definition
grid_ref.h:107
GhosttyStyle
Definition
style.h:94
style.h
types.h
GhosttyResult
GhosttyResult
Definition
types.h:88
include
ghostty
vt
grid_ref.h
Generated by
1.18.0