Advertisement
Advertisement
β‘ Community Insights
Discussion Sentiment
100% Positive
Analyzed from 256 words in the discussion.
Trending Topics
#gtk#native#widget#widgets#rust#documentation#solution#using#haskell#read
Discussion Sentiment
Analyzed from 256 words in the discussion.
Trending Topics
Discussion (9 Comments)Read Original on HackerNews
1. Use a native widget system such as GTK (I evaluated Qt too)
2. Wrap widgets into a component datatype that is aware on how to update the widget when the props/model changes.
3. Define a dispatch closure that is passed to widget that accepts messages. Actions on the widgets should use this instead of mutating a reference.
4. That dispatch closure is component aware and it will call the update function on all the widgets.
There are some extra complications for long running computations but the model is a good base to build on. I wish the best to the relm team, most likely I will use them when programminmg in rust.
So, not native in the sense of using or even resembling the native UI toolkit.