• 0 Posts
  • 1 Comment
Joined 1Y ago
cake
Cake day: Jun 12, 2023

help-circle
rss

GTK has poor compatibility with Rust, due to it’s inheritance/OOP design. Iced-rs is a neat GUI library that works well with Rust’s features, you define view separately from the update loop. In the view you place widgets which send messages, and the update function listens to those and based on pattern matching the message updates the central struct when one is sent.

You can often achieve the same result in a different way if you’re not married to certain features, or in this case frameworks.