Views, events as messages, and a patch, over plain Avalonia
A program is a model, an update and a view. A view is a Bjolang value; an event finds its message in the view its control was last given, and the next view is compared with the last so only what differs is changed. Controls are made with plain constructors and changed with SetValue, so nothing is subclassed, and a program never names an Avalonia type. Text, button, text input, checkbox, column and row. tests/app.bjo drives an app through its real controls with no window. 🤖 Generated with [ECA](https://eca.dev) (anthropic/claude-opus-4-8) Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
commit
2f4c99ba62
9 changed files with 1415 additions and 0 deletions
12
manifest.bjodat
Normal file
12
manifest.bjodat
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(package
|
||||
(name (bjogui))
|
||||
(version "0.1.0")
|
||||
(description "Desktop programs as a model, an update and a view, shown with Avalonia.")
|
||||
(license "MPL-2.0")
|
||||
|
||||
;; Avalonia draws the controls. Avalonia.Desktop picks the platform: X11 on
|
||||
;; Linux, Win32 on Windows, Cocoa on macOS.
|
||||
(packages
|
||||
(nuget (id "Avalonia") (version "11.3.2"))
|
||||
(nuget (id "Avalonia.Desktop") (version "11.3.2"))
|
||||
(nuget (id "Avalonia.Themes.Fluent") (version "11.3.2"))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue