libghostty-vt
0.0.0
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
52
100
typedef
struct
{
102
void
*
node
;
103
105
uint16_t
x
;
106
108
uint16_t
y
;
109
}
GhosttyGridRef
;
110
121
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_cell
(
const
GhosttyGridRef
*ref,
122
GhosttyCell
*out_cell);
123
134
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_row
(
const
GhosttyGridRef
*ref,
135
GhosttyRow
*out_row);
136
180
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_graphemes
(
const
GhosttyGridRef
*ref,
181
uint32_t *buf,
182
size_t
buf_len,
183
size_t
*out_written);
184
220
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_hyperlink_uri
(
221
const
GhosttyGridRef
*ref,
222
uint8_t *buf,
223
size_t
buf_len,
224
size_t
*out_written);
225
236
GHOSTTY_API
GhosttyResult
ghostty_grid_ref_style
(
const
GhosttyGridRef
*ref,
237
GhosttyStyle
*out_style);
238
240
241
#ifdef __cplusplus
242
}
243
#endif
244
245
#endif
/* GHOSTTY_VT_GRID_REF_H */
GhosttyResult
GhosttyResult
Definition
types.h:143
ghostty_grid_ref_cell
GHOSTTY_API GhosttyResult ghostty_grid_ref_cell(const GhosttyGridRef *ref, GhosttyCell *out_cell)
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_written)
ghostty_grid_ref_style
GHOSTTY_API GhosttyResult ghostty_grid_ref_style(const GhosttyGridRef *ref, GhosttyStyle *out_style)
ghostty_grid_ref_graphemes
GHOSTTY_API GhosttyResult ghostty_grid_ref_graphemes(const GhosttyGridRef *ref, uint32_t *buf, size_t buf_len, size_t *out_written)
ghostty_grid_ref_row
GHOSTTY_API GhosttyResult ghostty_grid_ref_row(const GhosttyGridRef *ref, GhosttyRow *out_row)
GhosttyRow
uint64_t GhosttyRow
Definition
screen.h:67
GhosttyCell
uint64_t GhosttyCell
Definition
screen.h:56
screen.h
GhosttyGridRef
Definition
grid_ref.h:100
GhosttyGridRef::x
uint16_t x
Definition
grid_ref.h:105
GhosttyGridRef::node
void * node
Definition
grid_ref.h:102
GhosttyGridRef::y
uint16_t y
Definition
grid_ref.h:108
GhosttyStyle
Definition
style.h:227
style.h
types.h
include
ghostty
vt
grid_ref.h
Generated by
1.17.0