Replies: 1 comment 2 replies
-
You could do the following:
Regarding your 2. point, unfortunately I don't quite understand what you want to archive exactly. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm currently working on a screenshot application similar to Flameshot and want to use relm4 as the GUI library.
The basic idea is that the application opens in full screen on any monitor, meaning a window is created for every monitor. Then the user can select the content they want and save/copy it to the clipboard. However, I'm facing a couple of issues:
If I understand correctly, the root of a relm4 application is a widget itself that has widgets as children (of the Widget type). My idea is to save a vector of windows as child widgets and create them on initialization. However, the root widget itself is a window. Is there a way to use some sort of "container" / dummy as the root just to manage the instantiation of the child windows? Or is there an even better option in relm4 to create multi-window applications?
A problem with my approach in (1) is that I won't be able to select across windows. My idea was to create a GTK DrawingArea and track mouse movements to handle the selection box properly. Are there any components that I could use that already provide this basic selection functionality?
My knowledge of GTK and relm4 is limited so I would greatly appreciate any suggestions or guidance on the best approach.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions