Module nih_plug_vizia::widgets
source · Expand description
Widgets and utilities for making widgets to integrate VIZIA with NIH-plug.
Note
None of these widgets are finalized, and their sizes or looks can change at any point. Feel free to copy the widgets and modify them to your personal taste.
Modules
- A base widget for creating other widgets that integrate with NIH-plug’s
Param
types. - Utilities for writing VIZIA widgets.
Structs
- Shows a generic UI for a
Params
object. For additional flexibility you can either use thenew()
method to have the generic UI decide which widget to use for your parameters, or you can use thenew_custom()
method to determine this yourself. - A slider that integrates with NIH-plug’s
Param
types. Use theset_style()
method to change how the value gets displayed. - A simple horizontal peak meter.
- A resize handle placed at the bottom right of the window that lets you resize the window.
Enums
- Events that directly interact with the
GuiContext
. Used to trigger resizes. - An event that updates a parameter’s value. Since NIH-plug manages the parameters, interacting with parameter values with VIZIA works a little different from updating any other state. These events are automatically handled by
nih_plug_vizia
. - How the
ParamSlider
should display its values. Set this usingParamSliderExt::set_style()
. - The same as
ParamEvent
, but type erased. UseParamEvent
as an easier way to construct these if you are working with regular parameter objects.
Traits
- Extension methods for
ParamButton
handles. - Extension methods for
ParamSlider
handles.
Functions
- Register the default theme for the widgets exported by this module. This is automatically called for you when using
create_vizia_editor()
.