7#ifndef GHOSTTY_VT_TYPES_H
8#define GHOSTTY_VT_TYPES_H
21#if defined(GHOSTTY_STATIC)
23#elif defined(_WIN32) || defined(_WIN64)
24 #ifdef GHOSTTY_BUILD_SHARED
25 #define GHOSTTY_API __declspec(dllexport)
27 #define GHOSTTY_API __declspec(dllimport)
29#elif defined(__GNUC__) && __GNUC__ >= 4
30 #define GHOSTTY_API __attribute__((visibility("default")))
72#ifndef GHOSTTY_DEPRECATED
73#if defined(__GNUC__) || defined(__clang__)
74 #define GHOSTTY_DEPRECATED(msg) __attribute__((deprecated(msg)))
75#elif defined(_MSC_VER)
76 #define GHOSTTY_DEPRECATED(msg) __declspec(deprecated(msg))
78 #define GHOSTTY_DEPRECATED(msg)
118#if defined(__cplusplus) && \
119 (__cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1700))
120#define GHOSTTY_ENUM_TYPED : int
121#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
122#define GHOSTTY_ENUM_TYPED : int
124#define GHOSTTY_ENUM_TYPED
126#define GHOSTTY_ENUM_MAX_VALUE INT_MAX
186 GHOSTTY_RESULT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
342 GHOSTTY_FORMATTER_FORMAT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
367 GHOSTTY_CURSOR_STYLE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
406 GHOSTTY_IMAGE_LAYER_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
418#define GHOSTTY_IMAGE_LAYER_MASK_BELOW_BACKGROUND \
419 (1u << GHOSTTY_IMAGE_LAYER_BELOW_BACKGROUND)
422#define GHOSTTY_IMAGE_LAYER_MASK_BELOW_TEXT \
423 (1u << GHOSTTY_IMAGE_LAYER_BELOW_TEXT)
426#define GHOSTTY_IMAGE_LAYER_MASK_ABOVE_TEXT \
427 (1u << GHOSTTY_IMAGE_LAYER_ABOVE_TEXT)
551#define GHOSTTY_INIT_SIZED(type) \
554 value.size = sizeof(value); \
558#define GHOSTTY_INIT_SIZED(type) \
559 ((type){ .size = sizeof(type) })
GHOSTTY_API const char * ghostty_type_json(void)
GHOSTTY_API void ghostty_sized_init(void *ptr, size_t size)
#define GHOSTTY_ENUM_TYPED
struct GhosttyTrackedGridRefImpl * GhosttyTrackedGridRef
struct GhosttyKittyGraphicsImpl * GhosttyKittyGraphics
struct GhosttyKittyGraphicsPlacementIteratorImpl * GhosttyKittyGraphicsPlacementIterator
const struct GhosttyKittyGraphicsImageImpl * GhosttyKittyGraphicsImage
struct GhosttyOscParserImpl * GhosttyOscParser
struct GhosttyOscCommandImpl * GhosttyOscCommand
struct GhosttyRenderStateRowIteratorImpl * GhosttyRenderStateRowIterator
struct GhosttyRenderStateImpl * GhosttyRenderState
struct GhosttyRenderStateImageIteratorImpl * GhosttyRenderStateImageIterator
struct GhosttyRenderStateRowCellsImpl * GhosttyRenderStateRowCells
@ GHOSTTY_IMAGE_LAYER_ABOVE_TEXT
@ GHOSTTY_IMAGE_LAYER_BELOW_BACKGROUND
@ GHOSTTY_IMAGE_LAYER_BELOW_TEXT
struct GhosttySearchImpl * GhosttySearch
struct GhosttySgrParserImpl * GhosttySgrParser
struct GhosttySnapshotDecoderImpl * GhosttySnapshotDecoder
struct GhosttyTerminalImpl * GhosttyTerminal
@ GHOSTTY_CURSOR_STYLE_BAR
@ GHOSTTY_CURSOR_STYLE_UNDERLINE
@ GHOSTTY_CURSOR_STYLE_BLOCK_HOLLOW
@ GHOSTTY_CURSOR_STYLE_BLOCK