gtk-rs / examples4

DEPRECATED, use https://github.com/gtk-rs/gtk4-rs repository instead!
MIT License
16 stars 4 forks source link

Need example of custom widgets #5

Closed kavan-mevada closed 4 years ago

kavan-mevada commented 4 years ago

Can we have example of making custom widget or subclass of gtk widget ? https://wiki.gnome.org/HowDoI/CustomWidgets

sfanxiang commented 4 years ago

Would https://github.com/gtk-rs/examples/blob/aa53d613062e2abbcbe44c96bc66fae8048c9d3c/src/bin/basic_subclass.rs suffice, or are you looking for something else?

cc @GuillaumeGomez since I didn't really follow the subclassing story.

GuillaumeGomez commented 4 years ago

For now, the gtk4 is very incomplete, so the examples will come later on. :)

As for a subclass example, there is one provided for the gtk3 crates, nicely provided by @sfanxiang. :)

kavan-mevada commented 4 years ago

@sfanxiang: Thanks, that what I was looking for. @GuillaumeGomez: Sure, And you can upload this repo in GNOME(gitlab). I feel there are lots of people wanna learn gtk+rust. (Good to have material next to related one).

GuillaumeGomez commented 4 years ago

Sorry but this won't happen. Or at least not in a close future.