DISTRHO Plugin Framework
 All Classes Functions Variables Modules Pages
Classes | Public Member Functions | Protected Member Functions | List of all members
ImageSlider Class Reference
Inheritance diagram for ImageSlider:
Widget

Classes

class  Callback
 

Public Member Functions

 ImageSlider (Window &parent, const Image &image) noexcept
 
 ImageSlider (Widget *widget, const Image &image) noexcept
 
 ImageSlider (const ImageSlider &imageSlider) noexcept
 
ImageSlideroperator= (const ImageSlider &imageSlider) noexcept
 
float getValue () const noexcept
 
void setStartPos (const Point< int > &startPos) noexcept
 
void setStartPos (int x, int y) noexcept
 
void setEndPos (const Point< int > &endPos) noexcept
 
void setEndPos (int x, int y) noexcept
 
void setInverted (bool inverted) noexcept
 
void setRange (float min, float max) noexcept
 
void setStep (float step) noexcept
 
void setValue (float value, bool sendCallback=false) noexcept
 
void setCallback (Callback *callback) noexcept
 
- Public Member Functions inherited from Widget
 Widget (Window &parent)
 
virtual ~Widget ()
 
bool isVisible () const noexcept
 
void setVisible (bool yesNo)
 
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
 
int getAbsoluteX () const noexcept
 
int getAbsoluteY () const noexcept
 
const Point< int > & getAbsolutePos () 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
 
AppgetParentApp () const noexcept
 
WindowgetParentWindow () const noexcept
 
bool contains (int x, int y) const noexcept
 
bool contains (const Point< int > &pos) const noexcept
 
void repaint () noexcept
 
uint getId () const noexcept
 
void setId (uint id) noexcept
 

Protected Member Functions

void onDisplay () override
 
bool onMouse (const MouseEvent &) override
 
bool onMotion (const MotionEvent &) override
 
- Protected Member Functions inherited from Widget
virtual bool onKeyboard (const KeyboardEvent &)
 
virtual bool onSpecial (const SpecialEvent &)
 
virtual bool onScroll (const ScrollEvent &)
 
virtual void onResize (const ResizeEvent &)
 
void setNeedsFullViewport (bool yesNo) noexcept
 
void setNeedsScaling (bool yesNo) noexcept
 

Member Function Documentation

void ImageSlider::onDisplay ( )
overrideprotectedvirtual

A function called to draw the view contents with OpenGL.

Implements Widget.

bool ImageSlider::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.

bool ImageSlider::onMotion ( const MotionEvent )
overrideprotectedvirtual

A function called when the pointer moves.

Returns
True to stop event propagation, false otherwise.

Reimplemented from Widget.


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