Three trees
A widget is configuration. An element owns identity and lifecycle. A RenderObject lays out, paints and hit-tests.
↑↓ to move · Enter to open · Esc to close
1.0.0
Desktop UI
Declarative desktop interfaces, written in Nox.
A widget tree becomes elements, then a render tree, then a scene the shell paints. The same self-check runs on macOS, Windows, X11 and Wayland.
noxc run examples/counter/main.noxNox 2.0. The language itself is documented at noxlang.com.
from aura.controls import Button
from aura.layout import Center, Column
from aura.text import Text
from aura.widgets import BuildContext, Signal, State, StatefulWidget, Widget
class CounterState(State):
count: Signal
def __init__(self) -> None:
super().__init__()
self.count = Signal(0)
def increment(self) -> None:
self.count.set(self.count.get() + 1)
def build(self, context: BuildContext) -> Widget:
return Center(Column([
Text("Aura", font_size=32.0),
Text(str(self.count.get()), font_size=48.0),
Button("Continue", self.increment),
]))Shape
Aura is the desktop UI framework for Nox. Version 1.0 freezes the public API: Text stays, rich text is inline, and the three desktop shells are the supported targets.
A widget is configuration. An element owns identity and lifecycle. A RenderObject lays out, paints and hit-tests.
The shell owns the window. Reading files off the UI thread is a later, explicit step, not a hidden thread.
Text, TextRun and RichText stay. Web, hot reload and slivers are outside the 1.0 contract.
Surface
StatelessWidget, State, Key, Signal
Row, Column, Stack, Align, virtual list
Text, TextRun, RichText, fields
macOS, Win32, X11 and Wayland
This site is a Nyx application on the same Cloudflare tunnel as noxlang.com. The language reference stays on the Nox site.