pywlroots icon indicating copy to clipboard operation
pywlroots copied to clipboard

[bindgen] wlr_cursor_detach_input_device, wlr_cursor_set_image

Open Shinyzenith opened this issue 3 years ago • 2 comments

  • wlr_cursor_set_image - pixel parameter is a pointer to a const unit8_t, I wasn't sure how to turn the pixels parameter into a pointer to pass to the cdef, so I just left it as is. Some input on this would help.

Signed-off-by: Shinyzenith [email protected]

Shinyzenith avatar Jun 27 '22 17:06 Shinyzenith

What would you imagine passing into the wlr_cursor_set_image? It seems like something like a bytes or bytearray would work well as an input, but you could imagine something that would work nicely with pillow Images or numpy arrays (not sure we'd want to add those as a dependency, tho).

flacjacket avatar Jul 01 '22 23:07 flacjacket

What would you imagine passing into the wlr_cursor_set_image? It seems like something like a bytes or bytearray would work well as an input, but you could imagine something that would work nicely with pillow Images or numpy arrays (not sure we'd want to add those as a dependency, tho).

All seem valid, and I suspect the commonality between all of these is the buffer protocol. Perhaps the input can be general enough to support that?

m-col avatar Jul 02 '22 12:07 m-col