cvkg-render-native
cvkg-render-native provides the OS-level integration for CVKG applications on Desktop (Linux, Windows, macOS).
Features
- Window Management: Manages
winitwindow creation and lifecycle. - Event Loop: Implements the main CVKG event loop, translating native
winitevents (WindowEvent, DeviceEvent) into CVKGEventvariants. - IME Integration: Enables and routes OS-level Input Method Editor (IME) events for multi-key character composition.
- Accessibility Host: Houses the
AccessKitadapter for screen reader integration. - Renderer Bridging: Bridges the
SurtrRenderer(GPU) with theVDomto create a complete interactive application.
Main Functionality
The crate typically provides an App or Window runner that:
- Creates a GPU surface.
- Initializes the VDOM.
- Runs the event loop.
- Rebuilds and re-renders the UI on state changes or input.