Gtk4 decided that some Classes/Object should be final and can’t be subclassed/inherited.
After a question on irc, @ebassi has responded that the proper way to construct custom object is to compose it from Gtk4 Classes.
For the following scenario, what would be the proper process:
I want to create a custom Image, so I inherit my class form GtkWidget, add GtkImage as a member variable and construct it the way I want, implement the
measure function, set the image.parent to the class, the question is:
how to deleget the snapshot virtual function to the image? If I just call
image.snapshot (snapshot); from inside the virtual function, I get nothing drawn to the surface?
How would one achieve this?