You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
						
							 | 
							- #pragma once
 - #include <app/common.hpp>
 - #include <app/ParamWidget.hpp>
 - #include <app.hpp>
 - 
 - 
 - namespace rack {
 - namespace app {
 - 
 - 
 - /** Implements vertical dragging behavior for ParamWidgets */
 - struct Knob : ParamWidget {
 - 	/** Multiplier for mouse movement to adjust knob value */
 - 	float speed = 1.0;
 - 	/** Drag horizontally instead of vertically. */
 - 	bool horizontal = false;
 - 	/** Enables per-sample value smoothing while dragging. */
 - 	bool smooth = true;
 - 	/** DEPRECATED. Use `ParamQuantity::snapEnabled`. */
 - 	bool snap = false;
 - 
 - 	/** Value of the knob before dragging. */
 - 	float oldValue = 0.f;
 - 	/** Fractional value between the param's value and the dragged knob position. */
 - 	float snapDelta = 0.f;
 - 
 - 	void initParamQuantity() override;
 - 	void onHover(const event::Hover& e) override;
 - 	void onButton(const event::Button& e) override;
 - 	void onDragStart(const event::DragStart& e) override;
 - 	void onDragEnd(const event::DragEnd& e) override;
 - 	void onDragMove(const event::DragMove& e) override;
 - };
 - 
 - 
 - } // namespace app
 - } // namespace rack
 
 
  |