8 #include "cparamdisplay.h" 19 void setStopTrackingOnMouseExit (
bool state) { stopTrackingOnMouseExit = state; }
20 bool getStopTrackingOnMouseExit ()
const {
return stopTrackingOnMouseExit; }
28 bool onWheel (
const CPoint& where,
const CMouseWheelAxis& axis,
const float& distance,
const CButtonState& buttons)
override;
30 static float calculateValue (
float x,
float y)
32 x = std::floor (x * 1000.f + 0.5f) * 0.001f;
33 y = std::floor (y * 1000.f + 0.5f) * 0.0000001f;
37 static void calculateXY (
float value,
float& x,
float& y)
39 x = std::floor (value * 1000.f + 0.5f) * 0.001f;
40 y = std::floor ((value - x) * 10000000.f + 0.5f) * 0.001f;
44 void setMin (
float val)
override { }
45 void setMax (
float val)
override { }
47 void boundValues (
float& x,
float& y);
49 float mouseStartValue;
50 CPoint mouseChangeStartPoint;
51 CPoint lastMouseChangePoint;
52 bool stopTrackingOnMouseExit;
bool onWheel(const CPoint &where, const CMouseWheelAxis &axis, const float &distance, const CButtonState &buttons) override
called if a mouse wheel event is happening over this view
Definition: cxypad.cpp:116
Rect structure.
Definition: crect.h:17
Definition: vstguibase.h:299
A drawing context encapsulates the drawing context of the underlying OS.
Definition: cdrawcontext.h:29
CMouseEventResult onMouseCancel() override
called when mouse tracking should be canceled
Definition: cxypad.cpp:65
Definition: customcontrols.cpp:8
CMouseEventResult onMouseUp(CPoint &where, const CButtonState &buttons) override
called when a mouse up event occurs
Definition: cxypad.cpp:54
CMouseEventResult onMouseDown(CPoint &where, const CButtonState &buttons) override
called when a mouse down event occurs
Definition: cxypad.cpp:39
void draw(CDrawContext *context) override
called if the view should draw itself
Definition: cxypad.cpp:20
CMouseEventResult onMouseMoved(CPoint &where, const CButtonState &buttons) override
called when a mouse move event occurs
Definition: cxypad.cpp:81
Point structure.
Definition: cpoint.h:17
a parameter display
Definition: cparamdisplay.h:24