pygfx / wgpu-py

WebGPU for Python
https://wgpu-py.readthedocs.io
BSD 2-Clause "Simplified" License
466 stars 36 forks source link

Set cursor on `WgpuCanvas` #624

Open kushalkolar opened 1 month ago

kushalkolar commented 1 month ago

followup from #595

I was just looking into how to set or hide the cursor on all the GUI backends, I can do this after the big #618 :rocket:

my idea is just to have a settable property: canvas.cursor = "name", we make a lookup table that maps "name" to the corresponding cursor for that GUI backend.

hmaarrfk commented 1 month ago

Other aspects that m8ght be interesting is setting the cursor position in xy