Replies: 2 comments 7 replies
-
Hey Tomasz! I think it could be possible, although I have never attempted anything as that. Freya depends on some Skia APIs, so it's not exactly graphics-agnostic, perhaps that is not a problem. Freya at its core is event loop-agnostic, so it should be possible to integrate it into another winit app. It even has a headless testing runner that simulates an event loop and platform inputs (like cursor movement, and that stuff), so, my point is that it would only need to be integrated properly. Perhaps getting skia to work on top is the most difficult part? I am not sure |
Beta Was this translation helpful? Give feedback.
-
Hello. I'm just guessing here, but I think, child webviews, alert dialogs, and the such, are actually something related to winit itself(as you stated) and how to integrate to Freya. Here we can find an example of multi windows: https://github.com/rust-windowing/winit/blob/master/examples/multiwindow.rs. So, perhaps, if there is high level way to coordinate multi windows manageament, using for example, use_state, and use_signal, and the event bubbling, it will be possible. About the menubar, this Rust crate, could help https://lib.rs/crates/menubar, although I donno the current state of it. |
Beta Was this translation helpful? Give feedback.
-
Hello 👋
Is it possible to integrate Freya for UI development within an application that is built on winit, similar to the way
wry
allows the creation of child webviews? Specifically, I'm interested in understanding if Freya can be used to design 2D menus or interfaces within a game application which owns the window and event loop.Beta Was this translation helpful? Give feedback.
All reactions