libghostty
Loading...
Searching...
No Matches
render.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <ghostty/vt/allocator.h>
#include <ghostty/vt/color.h>
#include <ghostty/vt/terminal.h>
#include <ghostty/vt/types.h>

Go to the source code of this file.

Data Structures

struct  GhosttyRenderStateColors

Typedefs

typedef struct GhosttyRenderStateGhosttyRenderState
typedef struct GhosttyRenderStateRowIteratorGhosttyRenderStateRowIterator
typedef struct GhosttyRenderStateRowCellsGhosttyRenderStateRowCells

Enumerations

enum  GhosttyRenderStateDirty { GHOSTTY_RENDER_STATE_DIRTY_FALSE = 0 , GHOSTTY_RENDER_STATE_DIRTY_PARTIAL = 1 , GHOSTTY_RENDER_STATE_DIRTY_FULL = 2 }
enum  GhosttyRenderStateCursorVisualStyle { GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_BAR = 0 , GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_BLOCK = 1 , GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_UNDERLINE = 2 , GHOSTTY_RENDER_STATE_CURSOR_VISUAL_STYLE_BLOCK_HOLLOW = 3 }
enum  GhosttyRenderStateData {
  GHOSTTY_RENDER_STATE_DATA_INVALID = 0 , GHOSTTY_RENDER_STATE_DATA_COLS = 1 , GHOSTTY_RENDER_STATE_DATA_ROWS = 2 , GHOSTTY_RENDER_STATE_DATA_DIRTY = 3 ,
  GHOSTTY_RENDER_STATE_DATA_ROW_ITERATOR = 4 , GHOSTTY_RENDER_STATE_DATA_COLOR_BACKGROUND = 5 , GHOSTTY_RENDER_STATE_DATA_COLOR_FOREGROUND = 6 , GHOSTTY_RENDER_STATE_DATA_COLOR_CURSOR = 7 ,
  GHOSTTY_RENDER_STATE_DATA_COLOR_CURSOR_HAS_VALUE = 8 , GHOSTTY_RENDER_STATE_DATA_COLOR_PALETTE = 9 , GHOSTTY_RENDER_STATE_DATA_CURSOR_VISUAL_STYLE = 10 , GHOSTTY_RENDER_STATE_DATA_CURSOR_VISIBLE = 11 ,
  GHOSTTY_RENDER_STATE_DATA_CURSOR_BLINKING = 12 , GHOSTTY_RENDER_STATE_DATA_CURSOR_PASSWORD_INPUT = 13 , GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_HAS_VALUE = 14 , GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_X = 15 ,
  GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_Y = 16 , GHOSTTY_RENDER_STATE_DATA_CURSOR_VIEWPORT_WIDE_TAIL = 17
}
enum  GhosttyRenderStateOption { GHOSTTY_RENDER_STATE_OPTION_DIRTY = 0 }
enum  GhosttyRenderStateRowData { GHOSTTY_RENDER_STATE_ROW_DATA_INVALID = 0 , GHOSTTY_RENDER_STATE_ROW_DATA_DIRTY = 1 , GHOSTTY_RENDER_STATE_ROW_DATA_RAW = 2 , GHOSTTY_RENDER_STATE_ROW_DATA_CELLS = 3 }
enum  GhosttyRenderStateRowOption { GHOSTTY_RENDER_STATE_ROW_OPTION_DIRTY = 0 }
enum  GhosttyRenderStateRowCellsData {
  GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_INVALID = 0 , GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_RAW = 1 , GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_STYLE = 2 , GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_GRAPHEMES_LEN = 3 ,
  GHOSTTY_RENDER_STATE_ROW_CELLS_DATA_GRAPHEMES_BUF = 4
}

Functions

GhosttyResult ghostty_render_state_new (const GhosttyAllocator *allocator, GhosttyRenderState *state)
void ghostty_render_state_free (GhosttyRenderState state)
GhosttyResult ghostty_render_state_update (GhosttyRenderState state, GhosttyTerminal terminal)
GhosttyResult ghostty_render_state_get (GhosttyRenderState state, GhosttyRenderStateData data, void *out)
GhosttyResult ghostty_render_state_set (GhosttyRenderState state, GhosttyRenderStateOption option, const void *value)
GhosttyResult ghostty_render_state_colors_get (GhosttyRenderState state, GhosttyRenderStateColors *out_colors)
GhosttyResult ghostty_render_state_row_iterator_new (const GhosttyAllocator *allocator, GhosttyRenderStateRowIterator *out_iterator)
void ghostty_render_state_row_iterator_free (GhosttyRenderStateRowIterator iterator)
bool ghostty_render_state_row_iterator_next (GhosttyRenderStateRowIterator iterator)
GhosttyResult ghostty_render_state_row_get (GhosttyRenderStateRowIterator iterator, GhosttyRenderStateRowData data, void *out)
GhosttyResult ghostty_render_state_row_set (GhosttyRenderStateRowIterator iterator, GhosttyRenderStateRowOption option, const void *value)
GhosttyResult ghostty_render_state_row_cells_new (const GhosttyAllocator *allocator, GhosttyRenderStateRowCells *out_cells)
bool ghostty_render_state_row_cells_next (GhosttyRenderStateRowCells cells)
GhosttyResult ghostty_render_state_row_cells_select (GhosttyRenderStateRowCells cells, uint16_t x)
GhosttyResult ghostty_render_state_row_cells_get (GhosttyRenderStateRowCells cells, GhosttyRenderStateRowCellsData data, void *out)
void ghostty_render_state_row_cells_free (GhosttyRenderStateRowCells cells)

Detailed Description

Render state for creating high performance renderers.

Definition in file render.h.