ASPiK SDK
icontrollistener.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __icontrollistener__
6 #define __icontrollistener__
7 
8 #include "../vstguifwd.h"
9 #include "../cbuttonstate.h"
10 
11 namespace VSTGUI {
12 
13 //-----------------------------------------------------------------------------
15 {
16 public:
17  virtual ~IControlListener () noexcept = default;
18  virtual void valueChanged (CControl* pControl) = 0;
19  virtual int32_t controlModifierClicked (CControl* pControl, CButtonState button) { return 0; }
20  virtual void controlBeginEdit (CControl* pControl) {}
21  virtual void controlEndEdit (CControl* pControl) {}
22  virtual void controlTagWillChange (CControl* pControl) {}
23  virtual void controlTagDidChange (CControl* pControl) {}
24 };
25 
26 }
27 
28 #endif // __icontrollistener__
Definition: customcontrols.cpp:8
base class of all VSTGUI controls
Definition: ccontrol.h:76
Button and Modifier state.
Definition: cbuttonstate.h:34
virtual int32_t controlModifierClicked(CControl *pControl, CButtonState button)
return 1 if you want the control to not handle it, otherwise 0
Definition: icontrollistener.h:19
Definition: icontrollistener.h:14