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

Classes

class  Callback
 

Public Types

enum  Orientation { Horizontal, Vertical }
 

Public Member Functions

 ImageBaseKnob (Widget *parentWidget, const ImageType &image, Orientation orientation=Vertical) noexcept
 
 ImageBaseKnob (const ImageBaseKnob &imageKnob)
 
ImageBaseKnoboperator= (const ImageBaseKnob &imageKnob)
 
float getValue () const noexcept
 
void setDefault (float def) noexcept
 
void setRange (float min, float max) noexcept
 
void setStep (float step) noexcept
 
void setValue (float value, bool sendCallback=false) noexcept
 
void setUsingLogScale (bool yesNo) noexcept
 
void setCallback (Callback *callback) noexcept
 
void setOrientation (Orientation orientation) noexcept
 
void setRotationAngle (int angle)
 
void setImageLayerCount (uint count) noexcept
 
- Public Member Functions inherited from SubWidget
 SubWidget (Widget *parentWidget)
 
virtual ~SubWidget ()
 
template<typename T >
bool contains (T x, T y) const noexcept
 
template<typename T >
bool contains (const Point< T > &pos) const noexcept
 
int getAbsoluteX () const noexcept
 
int getAbsoluteY () const noexcept
 
Point< int > getAbsolutePos () const noexcept
 
Rectangle< int > getAbsoluteArea () const noexcept
 
Rectangle< uint > getConstrainedAbsoluteArea () const noexcept
 
void setAbsoluteX (int x) noexcept
 
void setAbsoluteY (int y) noexcept
 
void setAbsolutePos (int x, int y) noexcept
 
void setAbsolutePos (const Point< int > &pos) noexcept
 
WidgetgetParentWidget () const noexcept
 
void repaint () noexcept override
 
virtual void toFront ()
 
void setNeedsFullViewportDrawing (bool needsFullViewportForDrawing=true)
 
void setNeedsViewportScaling (bool needsViewportScaling=true, double autoScaleFactor=0.0)
 
void setSkipDrawing (bool skipDrawing=true)
 
- Public Member Functions inherited from Widget
virtual ~Widget ()
 
bool isVisible () const noexcept
 
void setVisible (bool visible)
 
void show ()
 
void hide ()
 
uint getWidth () const noexcept
 
uint getHeight () const noexcept
 
const Size< uint > getSize () const noexcept
 
void setWidth (uint width) noexcept
 
void setHeight (uint height) noexcept
 
void setSize (uint width, uint height) noexcept
 
void setSize (const Size< uint > &size) noexcept
 
uint getId () const noexcept
 
void setId (uint id) noexcept
 
ApplicationgetApp () const noexcept
 
WindowgetWindow () const noexcept
 
const GraphicsContextgetGraphicsContext () const noexcept
 
TopLevelWidgetgetTopLevelWidget () const noexcept
 
ApplicationgetParentApp () const noexcept
 
WindowgetParentWindow () const noexcept
 

Protected Member Functions

void onDisplay () override
 
bool onMouse (const MouseEvent &) override
 
bool onMotion (const MotionEvent &) override
 
bool onScroll (const ScrollEvent &) override
 
- Protected Member Functions inherited from SubWidget
virtual void onPositionChanged (const PositionChangedEvent &)
 
- Protected Member Functions inherited from Widget
virtual bool onKeyboard (const KeyboardEvent &)
 
virtual bool onSpecial (const SpecialEvent &)
 
virtual bool onCharacterInput (const CharacterInputEvent &)
 
virtual void onResize (const ResizeEvent &)
 

Member Function Documentation

◆ onDisplay()

template<class ImageType >
void ImageBaseKnob< ImageType >::onDisplay ( )
overrideprotectedvirtual

A function called to draw the widget contents.

Implements Widget.

◆ onMouse()

template<class ImageType >
bool ImageBaseKnob< ImageType >::onMouse ( const MouseEvent )
overrideprotectedvirtual

A function called when a mouse button is pressed or released.

Returns
True to stop event propagation, false otherwise.

Reimplemented from Widget.

◆ onMotion()

template<class ImageType >
bool ImageBaseKnob< ImageType >::onMotion ( const MotionEvent )
overrideprotectedvirtual

A function called when the pointer moves.

Returns
True to stop event propagation, false otherwise.

Reimplemented from Widget.

◆ onScroll()

template<class ImageType >
bool ImageBaseKnob< ImageType >::onScroll ( const ScrollEvent )
overrideprotectedvirtual

A function called on scrolling (e.g. mouse wheel or track pad).

Returns
True to stop event propagation, false otherwise.

Reimplemented from Widget.


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