libghostty
Loading...
Searching...
No Matches
render.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_RENDER_H
8#define GHOSTTY_VT_RENDER_H
9
10#include <stdbool.h>
11#include <stddef.h>
12#include <stdint.h>
14#include <ghostty/vt/color.h>
15#include <ghostty/vt/terminal.h>
16#include <ghostty/vt/types.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
83
90
97
104
110typedef enum {
113
116
120
126typedef enum {
129
132
135
139
145typedef enum {
148
151
154
157
164
167
170
175
178
181
184
187
190
193
197
201
205
210
216typedef enum {
220
226typedef enum {
229
232
235
242
248typedef enum {
252
268typedef struct {
270 size_t size;
271
274
277
280
287
291
303 GhosttyRenderState* state);
304
316
332 GhosttyTerminal terminal);
333
350 void* out);
351
369 const void* value);
370
387 GhosttyRenderStateColors* out_colors);
388
404 const GhosttyAllocator* allocator,
405 GhosttyRenderStateRowIterator* out_iterator);
406
415
429
449 void* out);
450
471 const void* value);
472
491 const GhosttyAllocator* allocator,
492 GhosttyRenderStateRowCells* out_cells);
493
499typedef enum {
502
505
508
512
518
532
548 GhosttyRenderStateRowCells cells, uint16_t x);
549
570 void* out);
571
580
582
583#ifdef __cplusplus
584}
585#endif
586
587#endif /* GHOSTTY_VT_RENDER_H */
GhosttyRenderStateRowData
Definition render.h:226
GhosttyResult ghostty_render_state_new(const GhosttyAllocator *allocator, GhosttyRenderState *state)
GhosttyResult ghostty_render_state_set(GhosttyRenderState state, GhosttyRenderStateOption option, const void *value)
GhosttyRenderStateData
Definition render.h:145
GhosttyRenderStateOption
Definition render.h:216
GhosttyResult ghostty_render_state_row_cells_new(const GhosttyAllocator *allocator, GhosttyRenderStateRowCells *out_cells)
GhosttyResult ghostty_render_state_update(GhosttyRenderState state, GhosttyTerminal terminal)
GhosttyResult ghostty_render_state_row_cells_select(GhosttyRenderStateRowCells cells, uint16_t x)
void ghostty_render_state_free(GhosttyRenderState state)
GhosttyResult ghostty_render_state_colors_get(GhosttyRenderState state, GhosttyRenderStateColors *out_colors)
GhosttyResult ghostty_render_state_row_cells_get(GhosttyRenderStateRowCells cells, GhosttyRenderStateRowCellsData data, void *out)
GhosttyRenderStateRowCellsData
Definition render.h:499
GhosttyResult ghostty_render_state_row_set(GhosttyRenderStateRowIterator iterator, GhosttyRenderStateRowOption option, const void *value)
GhosttyResult ghostty_render_state_row_iterator_new(const GhosttyAllocator *allocator, GhosttyRenderStateRowIterator *out_iterator)
void ghostty_render_state_row_cells_free(GhosttyRenderStateRowCells cells)
GhosttyResult ghostty_render_state_row_get(GhosttyRenderStateRowIterator iterator, GhosttyRenderStateRowData data, void *out)
GhosttyRenderStateCursorVisualStyle
Definition render.h:126
bool ghostty_render_state_row_iterator_next(GhosttyRenderStateRowIterator iterator)
struct GhosttyRenderStateRowCells * GhosttyRenderStateRowCells
Definition render.h:103
bool ghostty_render_state_row_cells_next(GhosttyRenderStateRowCells cells)
void ghostty_render_state_row_iterator_free(GhosttyRenderStateRowIterator iterator)
struct GhosttyRenderState * GhosttyRenderState
Definition render.h:89
GhosttyRenderStateDirty
Definition render.h:110
GhosttyRenderStateRowOption
Definition render.h:248
GhosttyResult ghostty_render_state_get(GhosttyRenderState state, GhosttyRenderStateData data, void *out)
struct GhosttyRenderStateRowIterator * GhosttyRenderStateRowIterator
Definition render.h:96
@ GHOSTTY_RENDER_STATE_ROW_DATA_INVALID
Definition render.h:228
@ GHOSTTY_RENDER_STATE_ROW_DATA_CELLS
Definition render.h:240
@ GHOSTTY_RENDER_STATE_ROW_DATA_RAW
Definition render.h:234
@ GHOSTTY_RENDER_STATE_ROW_DATA_DIRTY
Definition render.h:231
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_X
Definition render.h:200
@ GHOSTTY_RENDER_STATE_DATA_COLOR_FOREGROUND
Definition render.h:169
@ GHOSTTY_RENDER_STATE_DATA_COLOR_PALETTE
Definition render.h:180
@ GHOSTTY_RENDER_STATE_DATA_COLOR_CURSOR
Definition render.h:174
@ GHOSTTY_RENDER_STATE_DATA_DIRTY
Definition render.h:156
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_HAS_VALUE
Definition render.h:196
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_VISUAL_STYLE
Definition render.h:183
@ GHOSTTY_RENDER_STATE_DATA_COLOR_CURSOR_HAS_VALUE
Definition render.h:177
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_Y
Definition render.h:204
@ GHOSTTY_RENDER_STATE_DATA_INVALID
Definition render.h:147
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_PASSWORD_INPUT
Definition render.h:192
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_VISIBLE
Definition render.h:186
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_WIDE_TAIL
Definition render.h:208
@ GHOSTTY_RENDER_STATE_DATA_COLOR_BACKGROUND
Definition render.h:166
@ GHOSTTY_RENDER_STATE_DATA_ROW_ITERATOR
Definition render.h:163
@ GHOSTTY_RENDER_STATE_DATA_CURSOR_BLINKING
Definition render.h:189
@ GHOSTTY_RENDER_STATE_DATA_ROWS
Definition render.h:153
@ GHOSTTY_RENDER_STATE_DATA_COLS
Definition render.h:150
@ GHOSTTY_RENDER_STATE_OPTION_DIRTY
Definition render.h:218
@ GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_RAW
Definition render.h:504
@ GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_INVALID
Definition render.h:501
@ GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_GRAPHEMES_LEN
Definition render.h:511
@ GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_GRAPHEMES_BUF
Definition render.h:516
@ GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_STYLE
Definition render.h:507
@ GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_BLOCK
Definition render.h:131
@ GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_BAR
Definition render.h:128
@ GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_BLOCK_HOLLOW
Definition render.h:137
@ GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_UNDERLINE
Definition render.h:134
@ GHOSTTY_RENDER_STATE_DIRTY_FALSE
Definition render.h:112
@ GHOSTTY_RENDER_STATE_DIRTY_PARTIAL
Definition render.h:115
@ GHOSTTY_RENDER_STATE_DIRTY_FULL
Definition render.h:118
@ GHOSTTY_RENDER_STATE_ROW_OPTION_DIRTY
Definition render.h:250
struct GhosttyTerminal * GhosttyTerminal
Definition terminal.h:43
GhosttyColorRgb cursor
Definition render.h:279
GhosttyColorRgb foreground
Definition render.h:276
GhosttyColorRgb background
Definition render.h:273
GhosttyColorRgb palette[256]
Definition render.h:289
GhosttyResult
Definition types.h:13