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

Classes

class  Callback
 

Public Types

enum  State { kButtonStateDefault = 0x0 , kButtonStateHover = 0x1 , kButtonStateActive = 0x2 , kButtonStateActiveHover = kButtonStateActive|kButtonStateHover }
 

Public Member Functions

 ButtonEventHandler (SubWidget *self)
 
bool isActive () noexcept
 
void setActive (bool active, bool sendCallback) noexcept
 
bool isChecked () const noexcept
 
void setChecked (bool checked, bool sendCallback) noexcept
 
bool isCheckable () const noexcept
 
void setCheckable (bool checkable) noexcept
 
Point< double > getLastClickPosition () const noexcept
 
Point< double > getLastMotionPosition () const noexcept
 
void setCallback (Callback *callback) noexcept
 
bool mouseEvent (const Widget::MouseEvent &ev)
 
bool motionEvent (const Widget::MotionEvent &ev)
 

Protected Member Functions

State getState () const noexcept
 
void clearState () noexcept
 
virtual void stateChanged (State state, State oldState)
 
void setInternalCallback (Callback *callback) noexcept
 
void triggerUserCallback (SubWidget *widget, int button)
 

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