muse_ffi library
Muse — raw FFI surface.
Unstable. This barrel exposes the guarded FFI wrapper, ABI
constants/errors, and opaque native handle types. Generated bindings and
native library loading remain internal. The shape of this API tracks the C
ABI of libopentui and can break whenever that ABI bumps. Application code
should use package:muse/muse.dart or
package:muse/muse_low_level.dart.
Classes
- Attr
- Attr type.
- BorderSides
- BorderSides type.
- BoxOptions
- BoxOptions type.
- CapabilitiesHandle
- CapabilitiesHandle type.
- OpenTuiBindings
- Main OpenTUI bindings class that wraps the generated FFI bindings with our existing API and error handling.
- OptimizedBufferHandle
- OptimizedBufferHandle type.
- RendererHandle
- RendererHandle type.
- TextBufferHandle
- TextBufferHandle type.
Enums
- TextAlignment
- Values for TextAlignment.
Constants
- expectedOpenTuiAbiVersion → const int
- Dart/OpenTUI native ABI version expected by this package.
- openTuiCodeAssetId → const String
-
Default native asset ID used by generated
@Nativebindings.
Exceptions / Errors
- FFIException
- Exception thrown when FFI operations fail
- OpenTuiAbiMismatchException
- Thrown when the loaded OpenTUI native library does not match Dart's ABI.
- OpenTuiLibraryLoadException
- Thrown when the explicit development native-library override cannot load.