wow, this is great! :D
I might convert Fafi Gemini Browser to use this instead of direct racket/gui calls. This looks so much easier.
Thanks! Support for pasteboards is lacking right now so let me know if you run into any issues with that. I’m planning to write some documentation on making custom views soon, but I’m sure you’ll be able to figure it out. The hn.rkt example has an example of exactly that.
On a tangent note: declarative UI in Red language. Docs, 7GUIs benchmark.
Thank you for sharing.
What kind of layout engine does it have? Can I change the layout (not the code) based on screen size (eg when the user resizes/screen rotation/etc) ?
Is there a notion of horizontal/vertical , left/center/end, etc layout primitives ?
The library is built on top of racket’s built-in racket/gui lib so it shares the same layout management. It is possible to control things like alignment, stretch and size and any view that supports setting those properties also supports having them passed in as observables (so, for example, you could make an observable that tracks the current window size then derive values to control the layout of things based on it).
ah, thank you. I constrained my search just in your docs, and did not realize the above. Will study this.