egui/crates/emath/src
Jochen Görtler e8f351b729
Add `egui::Scene` for panning/zooming a `Ui` (#5505)
This is similar to `ScrollArea`, but:
* Supports zooming
* Has no scroll bars
* Has no limits on the scrolling

## TODO
* [x] Automatic sizing of `Scene`s outer bounds
* [x] Fix text selection in scenes
* [x] Implement `fit_rect`
* [x] Document / improve API

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2025-01-28 20:06:10 +01:00
..
align.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
easing.rs Easing functions (#4630) 2024-06-06 13:09:52 +02:00
gui_rounding.rs Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
history.rs Remove `extra_asserts` and `extra_debug_asserts` feature flags (#4478) 2024-05-10 19:39:08 +02:00
lib.rs Round widget coordinates to even multiple of 1/32 (#5517) 2024-12-26 20:54:24 +01:00
numeric.rs Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
ordered_float.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
pos2.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
range.rs Cross-widget text select (#3870) 2024-01-24 15:45:22 +01:00
rect.rs Provide better `debug_assert`s for ray intersections (#5504) 2024-12-19 13:39:14 +01:00
rect_transform.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
rot2.rs Fix docstring 2024-06-26 09:00:11 +02:00
smart_aim.rs Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
ts_transform.rs Add `egui::Scene` for panning/zooming a `Ui` (#5505) 2025-01-28 20:06:10 +01:00
vec2.rs Add new `Rect::intersects_ray_from_center` method (#5415) 2024-12-02 09:20:59 +01:00
vec2b.rs Update ScrollArea drag velocity when drag stopped (#5175) 2024-10-02 18:12:36 +02:00