1
0
Fork 0

Add an empty crate for iced support

This commit is contained in:
Robbert van der Helm 2022-03-12 22:10:14 +01:00
parent 33db034bc2
commit ff9e0f2ddf
4 changed files with 30 additions and 0 deletions

View file

@ -13,6 +13,7 @@ repository = "https://github.com/robbert-vdh/nih-plug"
members = [ members = [
"nih_plug_derive", "nih_plug_derive",
"nih_plug_egui", "nih_plug_egui",
"nih_plug_iced",
"nih_plug_xtask", "nih_plug_xtask",
"cargo_nih_plug", "cargo_nih_plug",

16
nih_plug_iced/Cargo.toml Normal file
View file

@ -0,0 +1,16 @@
[package]
name = "nih_plug_iced"
version = "0.0.0"
edition = "2021"
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
license = "ISC"
description = "An adapter to use iced GUIs with NIH-plug"
[dependencies]
nih_plug = { path = ".." }
baseview = { git = "https://github.com/robbert-vdh/baseview.git", branch = "feature/mouse-event-modifiers" }
# Upstream doesn't work with the current iced version, this branch also contains
# additional features
iced_egui = { git = "https://github.com/robbert-vdh/iced_baseview.git", branch = "feature/update-dependencies" }

5
nih_plug_iced/README.md Normal file
View file

@ -0,0 +1,5 @@
# NIH-plug: iced support
This provides an adapter to create [iced](https://github.com/iced-rs/iced) based
GUIs with NIH-plug through
[iced_baseview](https://github.com/BillyDM/iced_baseview).

8
nih_plug_iced/src/lib.rs Normal file
View file

@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}