pygfx / rendercanvas

One canvas API, multiple backends
https://rendercanvas.readthedocs.io
BSD 2-Clause "Simplified" License
8 stars 0 forks source link

Add RenderCanvas.set_cursor() #27

Open kushalkolar opened 1 month ago

kushalkolar commented 1 month ago

followup from pygfx/wgpu-py#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 pygfx/wgpu-py#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