1
0
Fork 0

Update nih_plug_egui from egui 0.17 to egui 0.19

This commit is contained in:
Robbert van der Helm 2022-09-22 15:34:59 +02:00
parent b008f129f2
commit 51b8f64092
4 changed files with 108 additions and 28 deletions

View file

@ -6,6 +6,10 @@ new and what's changed, this document lists all breaking changes in reverse
chronological order. If a new feature did not require any changes to existing
code then it will not be listed here.
## [2022-09-22]
- `nih_plug_egui` has been updated from egui 0.17 to egui 0.19.
## [2022-09-06]
- Parameter values are now accessed using `param.value()` instead of

127
Cargo.lock generated
View file

@ -56,6 +56,18 @@ dependencies = [
"version_check",
]
[[package]]
name = "ahash"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57e6e951cfbb2db8de1828d49073a113a29fd7117b1596caa781a258c7e38d72"
dependencies = [
"cfg-if 1.0.0",
"getrandom 0.2.7",
"once_cell",
"version_check",
]
[[package]]
name = "aliasable"
version = "0.1.3"
@ -718,7 +730,21 @@ dependencies = [
"objc-foundation",
"objc_id",
"smithay-clipboard",
"x11-clipboard",
"x11-clipboard 0.5.3",
]
[[package]]
name = "copypasta"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7216b5c1e9ad3867252505995b02d01c6fa7e6db0d8abd42634352ef377777e"
dependencies = [
"clipboard-win",
"objc",
"objc-foundation",
"objc_id",
"smithay-clipboard",
"x11-clipboard 0.6.1",
]
[[package]]
@ -1161,28 +1187,43 @@ dependencies = [
[[package]]
name = "egui"
version = "0.17.0"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a3cd1d47e12f7a17912595241622e373aa652a4e0fa90b3f9278f90a64aedf7"
checksum = "fc9fcd393c3daaaf5909008a1d948319d538b79c51871e4df0993260260a94e4"
dependencies = [
"ahash",
"ahash 0.8.0",
"epaint",
"nohash-hasher",
]
[[package]]
name = "egui-baseview"
version = "0.0.0"
source = "git+https://github.com/robbert-vdh/egui-baseview.git?branch=fix/update-dependencies#afde9c661809ee08d69864caa899246592d93f8c"
version = "0.1.0"
source = "git+https://github.com/robbert-vdh/egui-baseview.git?branch=fix/update-dependencies#c2e7281f1129482f0aef564cae42b3e7a26a6373"
dependencies = [
"baseview 0.1.0 (git+https://github.com/robbert-vdh/baseview.git?branch=feature/mouse-event-modifiers)",
"copypasta",
"copypasta 0.8.1",
"egui",
"gl",
"egui_glow",
"keyboard-types",
"raw-window-handle",
]
[[package]]
name = "egui_glow"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad77d4a00402bae9658ee64be148f4b2a0b38e4fc7874970575ca01ed1c5b75d"
dependencies = [
"bytemuck",
"egui",
"glow",
"memoffset",
"tracing",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "either"
version = "1.6.1"
@ -1191,21 +1232,26 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "emath"
version = "0.17.0"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a977a80456be58a2c2d48e69c1d0baadef46cecef5a0c98df141c468da006f12"
checksum = "9542a40106fdba943a055f418d1746a050e1a903a049b030c2b097d4686a33cf"
dependencies = [
"bytemuck",
]
[[package]]
name = "epaint"
version = "0.17.0"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "033292846059f08e03a71e1b5db2ee6ab7c9622c3b48da21f4bd13258ebee2db"
checksum = "5ba04741be7f6602b1a1b28f1082cce45948a7032961c52814f8946b28493300"
dependencies = [
"ab_glyph",
"ahash",
"ahash 0.8.0",
"atomic_refcell",
"bytemuck",
"emath",
"nohash-hasher",
"parking_lot 0.12.1",
]
[[package]]
@ -1604,15 +1650,6 @@ version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4"
[[package]]
name = "gl"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a94edab108827d67608095e269cf862e60d920f144a5026d3dbcfd8b877fb404"
dependencies = [
"gl_generator",
]
[[package]]
name = "gl_generator"
version = "0.14.0"
@ -1850,7 +1887,7 @@ version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
dependencies = [
"ahash",
"ahash 0.7.6",
]
[[package]]
@ -1886,7 +1923,7 @@ version = "0.0.3"
source = "git+https://github.com/robbert-vdh/iced_baseview.git?branch=feature/update-baseview#116e9043779946c9b2a1b4d2a06bf46752930919"
dependencies = [
"baseview 0.1.0 (git+https://github.com/robbert-vdh/baseview.git?branch=feature/mouse-event-modifiers)",
"copypasta",
"copypasta 0.7.1",
"iced_core",
"iced_futures",
"iced_glow",
@ -4118,6 +4155,26 @@ dependencies = [
"serde",
]
[[package]]
name = "tracing"
version = "0.1.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a400e31aa60b9d44a52a8ee0343b5b18566b03a8321e0d321f695cf56e940160"
dependencies = [
"cfg-if 1.0.0",
"pin-project-lite",
"tracing-core",
]
[[package]]
name = "tracing-core"
version = "0.1.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b7358be39f2f274f322d2aaed611acc57f382e8eb1e5b48cb9ae30933495ce7"
dependencies = [
"once_cell",
]
[[package]]
name = "transpose"
version = "0.2.1"
@ -4328,7 +4385,7 @@ version = "0.1.0"
source = "git+https://github.com/robbert-vdh/vizia.git?branch=patched#87672c6fdee89d33d4c4a2e1bfff17b4c24a778c"
dependencies = [
"bitflags",
"copypasta",
"copypasta 0.7.1",
"cssparser",
"femtovg",
"fluent-bundle",
@ -4910,6 +4967,15 @@ dependencies = [
"xcb 0.10.1",
]
[[package]]
name = "x11-clipboard"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a7468a5768fea473e6c8c0d4b60d6d7001a64acceaac267207ca0281e1337e8"
dependencies = [
"xcb 1.1.1",
]
[[package]]
name = "x11-dl"
version = "2.19.1"
@ -4943,6 +5009,17 @@ dependencies = [
"quick-xml",
]
[[package]]
name = "xcb"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b127bf5bfe9dbb39118d6567e3773d4bbc795411a8e1ef7b7e056bccac0011a9"
dependencies = [
"bitflags",
"libc",
"quick-xml",
]
[[package]]
name = "xcb-util"
version = "0.3.0"

View file

@ -16,7 +16,7 @@ nih_plug = { path = ".." }
baseview = { git = "https://github.com/robbert-vdh/baseview.git", branch = "feature/mouse-event-modifiers" }
crossbeam = "0.8"
egui = "0.17"
egui = "0.19"
# Upstream doesn't work with the current baseview and egui versions
egui-baseview = { git = "https://github.com/robbert-vdh/egui-baseview.git", branch = "fix/update-dependencies" }
lazy_static = "1.4"

View file

@ -173,8 +173,7 @@ where
queue.request_repaint();
(update)(egui_ctx, &setter, &mut state.write());
},
)
.expect("We provided an OpenGL config, did we not?");
);
self.egui_state.open.store(true, Ordering::Release);
Box::new(EguiEditorHandle {