Declarative C++
Compose transient Views with ordinary functions, typed state, events, themes, and modifiers.
HuxerUI unifies desktop, mobile, and Web behind one declarative runtime—with shared composition, state, layout, rendering, and animation, plus deep platform integration.
// Ordinary C++ becomes a retained interface.
[[huxerui::scope]]
View Counter() {
auto count = UseState(0);
return Column {
Text::Format("Count: {}", count),
Button("+1").OnClick([count] {
count += 1;
}),
}.With(
Padding(24.0F),
Spacing(12.0F)
);
}
View App() {
return Counter();
}Application code stays platform-neutral. Each backend owns the native lifecycle, input services, text system, and renderer.
Compose transient Views with ordinary functions, typed state, events, themes, and modifiers.
Reconciliation, incremental layout, animation, input, and scene retention remain shared and testable.
Connect windows, IME, accessibility, files, HTTP, PlatformViews, and texture producers through explicit adapters.
Material and Flat themes resolve the same controlled components, accessibility semantics, pointer and keyboard paths, and transient interaction model.
Explore componentsNavigation, presentation, resources, tasks, files, and extensibility use the same ownership model.
Controlled, theme-resolved interaction primitives with shared pointer, keyboard, focus, and semantics behavior.
Text measurement, editable values, validation, selection, IME integration, and submission actions.
Constraint-based composition, scrolling, responsive structure, and large-data virtualization.
Destination controls, retained page stacks, typed routes, nested navigation, and browser history.
Window-level feedback, modal surfaces, anchored content, progress, and layered presentation.
Typed image resources, vector assets, custom paths, retained drawing, and external texture streams.
The preview is one independently loaded application. Other demos stay dormant until you open their own URL.
Host SDK archives include the CLI, CMake package, host tools, resources, and packaged Android and Web artifacts.