Hi,
I am updating my keyboard application from GTK3 to GTK4. I am experimenting with gesture input and for that I had a grid of buttons for the letter keys and an Overlay with a DrawingArea. When the user clicked and dragged the mouse, I painted the trail of the movement on the DrawingArea. On release of the mouse, the trail was removed.
Now since I am porting the application to GTK4 I questioned that approach and thought it would make sense to use a cursor for that. My idea was to change the cursor when the mouse is clicked to a blue dot and when it is moved, it is supposed to leave a trail that slowly fades. Ideally it looks like these pictures.
I tried using CSS to achieve this but I was unable to change the style of the cursor with it. Can the cursor be changed via CSS? I was only able to assign a cursor to a widget via the set_cursor_from_name() method (Iām using the Rust bindings).
Thanks for all the work of GTK4 and especially on the new documentation
I had such a hard time learning GTK with the old docs.