DISTRHO Plugin Framework
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
KnobEventHandler Class Reference
Inheritance diagram for KnobEventHandler:
ImageBaseKnob< ImageType >

Classes

class  Callback
 

Public Types

enum  Orientation { Horizontal , Vertical , Both }
 
enum  State { kKnobStateDefault = 0x0 , kKnobStateHover = 0x1 , kKnobStateDragging = 0x2 , kKnobStateDraggingHover = kKnobStateDragging|kKnobStateHover }
 

Public Member Functions

 KnobEventHandler (SubWidget *self)
 
 KnobEventHandler (SubWidget *self, const KnobEventHandler &other)
 
KnobEventHandleroperator= (const KnobEventHandler &other)
 
bool isInteger () const noexcept
 
float getValue () const noexcept
 
virtual bool setValue (float value, bool sendCallback=false) noexcept
 
float getNormalizedValue () const noexcept
 
void setDefault (float def) noexcept
 
void setRange (float min, float max) noexcept
 
void setStep (float step) noexcept
 
void setUsingLogScale (bool yesNo) noexcept
 
Orientation getOrientation () const noexcept
 
void setOrientation (Orientation orientation) noexcept
 
void setCallback (Callback *callback) noexcept
 
void setMouseDeceleration (float accel) noexcept
 
bool mouseEvent (const Widget::MouseEvent &ev, double scaleFactor=1.0)
 
bool motionEvent (const Widget::MotionEvent &ev, double scaleFactor=1.0)
 
bool scrollEvent (const Widget::ScrollEvent &ev)
 

Protected Member Functions

State getState () const noexcept
 

The documentation for this class was generated from the following file: