Few question before I start making #4226
Replies: 2 comments 5 replies
-
I use some techniques to move a window in my project which is recreating the frame manually. In non-Wayland environments you can use some slint private APIs to set the x and y position (as exposed by win it). Due to the way Wayland is designed, this wasn't working and I had to use a different drag window function (which I don't think would work for you) I never tried animating the set x and y of the frame like you are asking, so I have no clue if it would work using Slint's animation framework or if you would need to handle the animation from code. Here are some previous discussions that might help point you in the right direction. |
Beta Was this translation helpful? Give feedback.
-
I have tried to implement some similar functionality and I think it would be very difficult to achieve the above using only Slint.
It's possible by using
As @Vadoola, It's really about the backend (Winit or Qt). These backends don't seem to implement animation functionality.
Slint doesn't seem to provide a similar event interface. I think it has to do with specific implementations for different systems, it's hard to get cross-platform? Maybe try using a specific system level API. All in all, it's hard to do this with slint alone. Strictly speaking, Slint is more concerned with rendering the content within the window rather than the position, animations of the window. The latter is more relevant to the backend (Winit or Qt). (Disclaimer: I am likewise a novice) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I making a concept app drawer (Don't ask why, i am just doing it)
The idea is to spawn a window(a) without frame outside of desktop windows leaving bit of in side of desktop window
when mouse is placed on window(a) (fig 1) it should slide to specified (like center left right)
fig 1
fig 2
before i start making i want to ask few questions
the windows in fig 1 comes in like fig 2 with like slide animation, it shouldn't just suddenly appear
Beta Was this translation helpful? Give feedback.
All reactions