1. 18

Docs: https://docs.racket-lang.org/gui-easy/index.html

  1.  

  2. 3

    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.

    1. 2

      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.

    2. 1

      On a tangent note: declarative UI in Red language. Docs, 7GUIs benchmark.

      1. 1

        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 ?

        1. 3

          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).

          1. 1

            ah, thank you. I constrained my search just in your docs, and did not realize the above. Will study this.