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
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