-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Horizontal and vertical splitter #944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This should be relatively easy to implement if anyone wants to take a stab at it. An interface like this should work pretty well: egui::VerticalSplitter::new().show(ui, |left_ui, right_ui| {
…
}); |
Wouldn't it be nicer to have the same struct do both vertical and horizontal splitting, so |
Just a note: I think the split position should be stored in fraction (e.g. 40%) so when resizing the outer container, the splitter stays at the same relative position. |
This would be nice. A few things to consider:
|
I see the issues with this (i dearly hope i wont need multiple splits x.x), but if anyone just needs a quick and dirty two pane splitter, until this ends up in egui in a proper and nicely done way, you can use this in your project https://gist.github.com/mkalte666/f9a982be0ac0276080d3434ab9ea4655 Giving this out as public domain, CC0, no warranty, etc etc. |
what's the status of this? |
Splits frame in half with access to each frame by two lambdas for each half
Is your feature request related to a problem? Please describe.
Not being able to place elements in one line with different directions
Describe the solution you'd like
Horizontal and vertical splitter that splits frame in half
Describe alternatives you've considered
Additional context
Couldn't think of a way to split by n times with access to different frames at once, there is a way to make a different function for each n way split, but it would be messy for sure
The text was updated successfully, but these errors were encountered: