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
Konkitoman
522cfb5767
Fix docs
2023-11-07 12:16:22 +02:00
Emil Ernerfeldt
645521bcee
Clarify logic around how viewports are retained, and add ViewportIdSet
2023-11-07 11:14:04 +01:00
Konkitoman
54c6d51b66
Move egui_winit::changes_between_builders to egui::ViewportBuilder::patch
2023-11-07 12:06:42 +02:00
Konkitoman
76fd5624b7
eframe:
...
* Fix wgpu builders memory leak
* Fix wgpu only using the first viewport builder
* Fix glow setting the wrong parent id
2023-11-07 11:56:42 +02:00
Emil Ernerfeldt
d6a5c8b6bf
Introduce ViewportIdSet
2023-11-07 10:24:56 +01:00
Emil Ernerfeldt
7bc5698079
Always use the latest async callback when rendering a viewport
2023-11-07 09:48:07 +01:00
Emil Ernerfeldt
6643713cc0
Remove Context::is_desktop
2023-11-07 09:30:00 +01:00
Emil Ernerfeldt
a85adf59b2
Rename force_embedding -> embed_viewports
2023-11-07 09:20:31 +01:00
Konkitoman
1ddfe072b9
Fix warning
2023-11-07 09:46:02 +02:00
Konkitoman
58dc7bab8b
Cleanup
2023-11-07 09:08:22 +02:00
Emil Ernerfeldt
8aa14d2fae
Allow changing titles
2023-11-06 20:14:24 +01:00
Emil Ernerfeldt
291ab1ee7b
Rename viewports example to test_viewports, and hide drag-and-drop
2023-11-06 20:03:23 +01:00
Emil Ernerfeldt
73432bad84
Make the viewports example/test an explicit tree of viewports
2023-11-06 19:57:11 +01:00
Emil Ernerfeldt
a52d38312c
MAIN -> ROOT
2023-11-06 19:19:37 +01:00
Emil Ernerfeldt
6a371e59cb
Define a fast ViewportMap type
2023-11-06 19:13:00 +01:00
Emil Ernerfeldt
0ae7eebfd4
Clean up example code
2023-11-06 18:35:27 +01:00