#include <string>
#include <sigc++/signal.h>
#include <sigc++/trackable.h>
+#include <msp/graphics/mspgui_api.h>
namespace Msp {
namespace Input {
Specifies the source of a control. This provides a way for setting sources for
different types of controls in a uniform way.
*/
-struct ControlSource
+struct MSPGUI_API ControlSource
{
- Device *dev = 0;
+ Device *dev = nullptr;
ControlSrcType type = NO_SOURCE;
unsigned index = 0;
controls (when used on a BinaryControl) or click-and-drag functionality (when
used on a SmoothControl).
*/
-class Control: public sigc::trackable
+class MSPGUI_API Control: public sigc::trackable
{
public:
sigc::signal<void> signal_capture_complete;
protected:
ControlSource src;
- Device *capture_dev = 0;
- BinaryControl *activator = 0;
+ Device *capture_dev = nullptr;
+ BinaryControl *activator = nullptr;
float origin = 0.0f;
bool rising_edge = false;
bool falling_edge = false;