Gain (iced)

gain-iced plugin

The gain plugin reimplemented with an iced GUI. Same DSP as the built-in gain example, different frontend.

Source: examples/truce-example-gain-iced/.

#What it demonstrates

  • IcedPlugin trait with custom view() method
  • knob, xy_pad, meter canvas widgets with .el() shorthand
  • IntoElement trait for clean iced layout code
  • Custom header using iced::widget::container with styled background
  • Default update() (no custom messages needed for this simple UI)
  • Consistent window sizing with WINDOW_W/WINDOW_H constants
  • Screenshot testing with truce_iced::screenshot

#Layout

Header bar with plugin name. Left column with two knobs (Gain, Pan) and an XY pad. Thin stereo meter spanning the full height on the right.

#See also

#Build and test

cargo build -p truce-example-gain-iced
cargo test -p truce-example-gain-iced