You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a follow-up to #4334 , this issue exists to remind about the missing support for rendering the mouse cursor when using renderer-software with backend-linuxkms.
The approach discussed in #4334 to implement this cleanly is briefly outlined in #4334 (comment) : Add support for this type of mouse cursor rendering in the core library by synthesizing an Image that's rendered on top of the scene.
The text was updated successfully, but these errors were encountered:
Maybe fn set_cursor_image(&self, image: Option<slint::Image>). I think Wayland also supports specifying an image for use a cursor, so this could indeed be on the Window.
No, no. The API i have in mind would be that Slint draws the cursor with its own renderer.
So an implementation of a backend would look like
implWindowAdapterforMyBackendWindow{// ...// this is currently in WindowAdapterInternal, but we should make it public at some point)fnset_mouse_cursor(&self,cursor:MouseCursor){let cursor_image:Option<slint::Image> = load_png_for_cursor(cursor);self.renderer.set_draw_mouse_cursor(cursor_image);}}
I think Wayland also supports specifying an image for use a cursor, so this could indeed be on the Window.
That is something else, and should be somehow in the MouseCursor enum, we could pass an image to TouchArea::mouse-cursor or an extra property.
As a follow-up to #4334 , this issue exists to remind about the missing support for rendering the mouse cursor when using
renderer-software
withbackend-linuxkms
.The approach discussed in #4334 to implement this cleanly is briefly outlined in #4334 (comment) : Add support for this type of mouse cursor rendering in the core library by synthesizing an
Image
that's rendered on top of the scene.The text was updated successfully, but these errors were encountered: