-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add egui::Scene
for panning/zooming a Ui
#5505
Conversation
Preview available at https://egui-pr-preview.github.io/pr/5505-grtlrzoom-and-pan-area |
I wonder if we can come up with a better name for this? 🤔 |
Some things that come to my mind (lower entries of the list are augmented by our AI overlords, you might guess which):
|
Viewfinder? This idea comes from photography. Short Wikipedia definition:
I think this kinda describes what this container does. |
Viewbox is a term that is sometimes used for this kind of thing, although often it refers to the coordinates of the inner element that are in view, rather than the container widget itself. |
70f804b
to
d794d83
Compare
ZoomPanArea
containeregui::Scene
for panning/zooming a Ui
302ebaa
to
f101d39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice—thank you @emilk for picking this up!
I can't approve my own PR, so here is a ✅.
This is similar to
ScrollArea
, but:TODO
Scene
s outer boundsfit_rect