pub enum WidgetConfig {
Slider(SliderConfig),
Checkbox,
ColorPicker,
CurveEditor,
Dropdown(DropdownConfig),
ButtonGroup(ButtonGroupConfig),
ControlPreview(ControlPreviewConfig),
Trigger,
Custom(CustomWidget),
}Expand description
UI widget configuration for parameter control
Variants§
Slider(SliderConfig)
Numeric slider with range
Checkbox
Boolean checkbox
ColorPicker
RGB color picker
CurveEditor
Animation curve editor
Dropdown(DropdownConfig)
Dropdown selector (combobox) - good for many options or detailed work
ButtonGroup(ButtonGroupConfig)
Button group (radio style) - good for live performance (2-6 options)
ControlPreview(ControlPreviewConfig)
Control signal preview (for ParamCompute outputs like LFO waveforms)
Trigger
Trigger button - sends 1.0 for one frame, auto-resets to 0.0 Use for one-shot actions like Reset, Randomize, etc.
Custom(CustomWidget)
Escape hatch for custom/future widgets
Trait Implementations§
Source§impl Clone for WidgetConfig
impl Clone for WidgetConfig
Source§fn clone(&self) -> WidgetConfig
fn clone(&self) -> WidgetConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WidgetConfig
impl RefUnwindSafe for WidgetConfig
impl Send for WidgetConfig
impl Sync for WidgetConfig
impl Unpin for WidgetConfig
impl UnwindSafe for WidgetConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more