Replies: 2 comments 1 reply
-
not an answer, but you could look at https://github.com/haighcam/egui_nodes if that helps |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can use https://docs.rs/egui/0.14.0/egui/struct.CtxRef.html#method.layer_painter to get a painter (use something like To know where to draw, I suggest you store away all the connection endpoints somewhere while you are drawing your node windows, and then draw the connections last. |
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
-
First up, wow. egui is great. I've never put together a UI so fast in my life!
Currently I have a project like this:
My aim is to make something like this:
At the moment my main question is drawing - how can I render lines that don't "belong" to a widget? I'm fine with drawing on the background element, but then I need to get the floating windows positions somehow? I have a depressing feeling this may not be architecturally possible with an immediate mode rendering library without pulling the state data out of it's innards.
The exact form of the lines doesn't concern me - straight lines are fine. Hacking around inside egui is also fine - but I just don't know where to start.
Beta Was this translation helpful? Give feedback.
All reactions