7 ms·
The book does, but it basically says "Don't do that", whereas since you're binding to a library that does that, you don't have a ton of choices. I haven't real
by steveklabnik 9y ago
The book does, but it basically says "Don't do that", whereas since you're binding to a library that does that, you don't have a ton of choices.
I haven't really used Gtk-rs enough to say more than that, really.
- pjmlp 9y agoBasically the idea of having structs implementing widgets, which need to respond to UI events and handle their state, stored as struct fields. On modern C++ you can easily use this approach with std::enable_shared_from_this.