How can I make sure the visible of a component before I do the screenshot? #3852
Unanswered
luckychacha
asked this question in
Q&A
Replies: 1 comment
-
It'd be specific to the window manager, i guess. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working with a user interface that incorporates a Circle within a TouchArea. As the mouse moves, the on_mouse_move function is called, which results in the circle following the mouse. This circle then displays a screenshot at the location of the mouse. The circle itself has a border and an Image within it. My current approach involves capturing a small screenshot around the cursor's position, saving it to an ImageBuffer, and then using a SharedPixelBuffer to display it.
I've tried to execute the process in three steps, which loop continuously until the mouse stops moving:
Code as follows:
However, I've encountered an issue where the circle does not hide immediately after I set its visibility to false. I'm unsure how to guarantee that the circle is truly hidden before proceeding with the screenshot.
From the video we could found that circle is also captured in the screenshot:
Screen.Capture.2023-11-07.10.25.49.mov
Here is a snippet of my Slint code for reference:
Beta Was this translation helpful? Give feedback.
All reactions