Skip to main content

Crate theme_engine_ffi

Crate theme_engine_ffi 

Source

Structs§

ThemeEngineRgb
C ABI RGB triplet.
ThemeEngineStyle
C ABI style payload.
ThemeEngineTheme
Opaque C handle for a loaded theme.

Constants§

THEME_ENGINE_FFI_ERR_NOT_FOUND
Requested style was not found.
THEME_ENGINE_FFI_ERR_NULL
A required pointer argument was null.
THEME_ENGINE_FFI_ERR_THEME
Theme loading or parsing failed.
THEME_ENGINE_FFI_ERR_UTF8
A C string argument was not valid UTF-8.
THEME_ENGINE_FFI_OK
Operation succeeded.

Functions§

theme_engine_theme_default_terminal_colors
Returns default terminal foreground/background colors from the theme.
theme_engine_theme_free
Frees a theme handle previously returned by this library.
theme_engine_theme_load_builtin
Loads a built-in theme by name (for example "tokyonight-dark").
theme_engine_theme_load_json
Loads a theme from a JSON string and returns a new handle.
theme_engine_theme_resolve_capture
Resolves a syntax capture style (for example "@keyword").
theme_engine_theme_resolve_ui
Resolves a UI role style (for example "statusline" or "tab_active").