]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/smoothcontrol.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / input / smoothcontrol.h
index 5f7182404bc5cb11bf12bdebd5cb3b1dc7259ef1..16dc7e6cae73f5a737ea93f1971fcb4db0364224 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_INPUT_SMOOTHCONTROL_H_
 #define MSP_INPUT_SMOOTHCONTROL_H_
 
+#include <msp/graphics/mspgui_api.h>
 #include "control.h"
 
 namespace Msp {
@@ -14,14 +15,14 @@ Two smooth controls can also be paired to each other.  Motion on one control of
 the pair will cause negative motion on the other.  This works best when the
 controls are bound to the opposite sides of the same axis.
 */
-class SmoothControl: public Control
+class MSPGUI_API SmoothControl: public Control
 {
 public:
        sigc::signal<void, float> signal_motion;
 
 private:
        float value = 0.0f;
-       SmoothControl *paired_ctrl = 0;
+       SmoothControl *paired_ctrl = nullptr;
        float dead_zone = 0.1f;
        float threshold = 0.9f;