1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00
Commit Graph

3130 Commits

Author SHA1 Message Date
YgorSouza
59b4eff83d Fix broken doc links in the demo app widget gallery (#3441)
* Closes <https://github.com/emilk/egui/issues/3439>
2023-11-10 21:39:49 +01:00
Phen-Ro
5f4046d68a Use impl Into<Stroke> as argument in a few more places (#3420)
* Functions that take Stroke were updated to take Into<Stroke> to make
them consistent with other Into<Stroke> parameters.
* Vec2 implements DivAssign<f32>, to make it consistent with already
implementing MulAssign<f32> and Div<f32>.
* Vec2::angled() uses sin_cos() rather than an individual sin() and
cos() call for an immeasurable but hypothetical performance improvement.
* Disable the lock_reentry_single_thread() mutex test. Lock()ing twice
on the same thread is not guaranteed to panic.

* Closes <https://github.com/emilk/egui/issues/3419>.
2023-11-10 21:36:51 +01:00
LoganDark
5201c04512 egui: add redo support to Undoer (#3478)
* Closes #3447
* Closes #3448

Better implementation than #3448. (by accident since I did not see that
PR)
2023-11-10 21:36:21 +01:00
Konkitoman
0901fa5a0f Fix: When we have a Viewport in a Viewport and when the first is destroyed, takes one more frame for the child to be destroyed. 2023-11-10 16:36:30 +02:00
Konkitoman
6b74ee7232 Simplify a little 2023-11-10 15:17:29 +02:00
Rinde van Lon
c0b14f4d4e fix-inconsistent-naming (#3438) 2023-11-10 13:11:48 +01:00
Bayley Foster
4c74e92911 docs: fix typo (#3421) 2023-11-10 13:11:34 +01:00
Konkitoman
4539ebed61 Remove another Rc<RefCell<T>> 2023-11-10 13:09:07 +02:00
Konkitoman
4ff713abde Removed more unused Rc<RefCell<T>> 2023-11-10 12:59:31 +02:00
Chris Cate
9ee6669f8f Fix rounding of ImageButton (#3531)
* ImageButton rounding fix

* remove unnecessary struct creation

* added rounding method for ImageButton

* grammar fix

* simplify the code slightly

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-11-10 11:49:05 +01:00
Nolan Darilek
d0ff09ac20 Update accesskit and accesskit_winit. (#3475)
* Update accesskit and accesskit_winit.

* Remove duplicated `libgtk-3-dev`

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-11-10 11:32:30 +01:00
Konkitoman
8a4164288b Remove unused Rc<RefCell<T>> 2023-11-10 12:30:18 +02:00
Ryan Hileman
7169f28ddf grammar fix in pr template (#3514) 2023-11-10 11:18:16 +01:00
YgorSouza
6326ef18d7 Make slider step account for range start (#3488)
Closes #3483
2023-11-10 11:17:16 +01:00
YgorSouza
7e2c65a82a Fix upside down slider in the vertical orientation (#3424) 2023-11-10 11:16:38 +01:00
One
e9f92fee4c Fix some typos (#3459)
* Fix typo

* Change from what to was

It doesn't say WHAT changed only that there WAS a change
2023-11-10 11:12:52 +01:00
Emil Ernerfeldt
9e8fb18643 borrow_mut -> replace 2023-11-09 20:01:57 +01:00
Emil Ernerfeldt
3041de3735 is_focused -> focused_viewport 2023-11-09 19:59:56 +01:00
Emil Ernerfeldt
3c8110eeeb Remove superfluous profiling scopes 2023-11-09 19:50:53 +01:00
Emil Ernerfeldt
0c300e183d Replace newtype with type alias 2023-11-09 19:48:24 +01:00
Emil Ernerfeldt
79bfca3657 Remove unnecessary Clone 2023-11-09 19:47:03 +01:00
Emil Ernerfeldt
0f7d1d557c Clarify tessellate 2023-11-09 19:23:37 +01:00
Emil Ernerfeldt
a852333f9b only apply x11 stuff on linux
Co-authored-by: Pablo Sichert <mail@pablosichert.com>
2023-11-09 19:11:38 +01:00
Emil Ernerfeldt
41f9df5cb3 Floating scroll bars (#3539)
* Move scroll bar spacing settings to a `struct ScrollSpacing`

* Add a demo for changing scroll bar appearance

* Add setting for ScrollBarVisibility in demo

* Add `#[inline]` to a `ScrollArea` builder methods

* Refactor how scroll bar show/hide is computed

* Add support for floating scroll bars

* Tweak color and opacity of the scroll handle

* Allow allocating a fixed size even for floating scroll bars

* Add three pre-sets of scroll bars: solid, thin, floating

* Use floating scroll bars as the default

* Fix id-clash with bidir scroll areas

* Improve demo

* Fix doclink

* Remove reset button from demo

* Fix doclinks

* Fix visual artifact with thin rounded rectangles

* Fix doclink

* typos
2023-11-09 18:41:58 +01:00
Konkitoman
9676115e49 Simplify and move CloseRequested 2023-11-08 08:15:08 +02:00
Konkitoman
e9b57e624d Fix warning 2023-11-08 07:58:53 +02:00
Konkitoman
04fbafd4ec Fix web 2023-11-08 07:47:43 +02:00
Konkitoman
37e42d1608 Fix docs 2023-11-08 07:44:28 +02:00
Konkitoman
f174467d42 Remove viewport_id from tessellate and added tessellate_for 2023-11-08 07:36:36 +02:00
Konkitoman
12f3782721 Introduce ViewportInfo 2023-11-08 07:29:00 +02:00
Konkitoman
0d7c87836c Better ViewportBuilder builder patern 2023-11-08 07:04:33 +02:00
Emil Ernerfeldt
b59cb75beb use let-else to reduce indentation levels 2023-11-07 19:51:51 +01:00
Emil Ernerfeldt
bee5d320c6 Add some puffin profiling scopes 2023-11-07 19:51:37 +01:00
Emil Ernerfeldt
2d54b4b3e2 Small cleanup and renamings 2023-11-07 19:37:46 +01:00
Emil Ernerfeldt
701301efc2 Use a ViewportIdSet 2023-11-07 19:19:45 +01:00
Emil Ernerfeldt
a3b02002ea Some better naming and cleanup of viewport.rs 2023-11-07 19:17:24 +01:00
Emil Ernerfeldt
96f1426c6f Clean up how max_texture_side is set 2023-11-07 19:06:16 +01:00
Emil Ernerfeldt
35a799c6a1 Refactor glow setup a bit 2023-11-07 18:51:25 +01:00
Emil Ernerfeldt
25fd7ba2be Fix wrong pixels-per-point for wgpu 2023-11-07 18:42:04 +01:00
Emil Ernerfeldt
d3134871d2 Clean up egui-wgpu code 2023-11-07 16:04:30 +01:00
Emil Ernerfeldt
18f3fdb61c Remove unsafe impl of Send and Sync for Painter 2023-11-07 15:57:42 +01:00
Emil Ernerfeldt
1a261ed520 Only one Interaction member of Memory 2023-11-07 15:40:45 +01:00
Emil Ernerfeldt
72d77bc504 Only one Memory window interaction 2023-11-07 15:33:04 +01:00
Emil Ernerfeldt
911b147144 Only have one Memory::areas 2023-11-07 15:28:31 +01:00
Emil Ernerfeldt
4ca165b152 Make Memory::areas private 2023-11-07 15:22:21 +01:00
Emil Ernerfeldt
ae346e14f4 update Cargo.lock 2023-11-07 15:20:52 +01:00
Emil Ernerfeldt
290ecca9bd Add a simple example of the viewports API 2023-11-07 15:20:35 +01:00
Emil Ernerfeldt
f300c951b3 Rename the viewport types to "immediate" and "deferred" 2023-11-07 11:50:59 +01:00
Emil Ernerfeldt
d4fab25fc8 Improve docs for ViewportCommand 2023-11-07 11:34:35 +01:00
Emil Ernerfeldt
85c8708524 egui-wgpu cleanup 2023-11-07 11:25:41 +01:00