Open bigos opened 3 days ago
Can you provide example how to use the cr in Gtk4 and get to using it as the cr in the examples.
I'm sorry but I haven't used this library for a long time, and never with Gtk4.
No worries. I have an alternative solution for working with Gtk4.
Thank you for reply.
[…] I have an alternative solution for working with Gtk4.
Good. You may want to post it here so as to help others that have the same question.
Somebody has suggested to do it his way.
https://github.com/bigos/gtk_minimal/blob/8265e7d47b771c1cb434ca582c84a8c62b2a9ecf/bin/main.ml#L105
there seems to be a way to create another type of context using a pointer
Is that what I am looking for?
I am experimenting with Gtk4.
https://docs.gtk.org/gtk4/callback.DrawingAreaDrawFunc.html
and try to write a callback.
Can you provide example how to use the cr in Gtk4 and get to using it as the cr in the examples.
My doubtful understanding is that I need to create context from the pointer.
I am a noob and trying various gives me errors that I do not understand.
https://github.com/bigos/gtk_minimal/blob/main/bin/main.ml