5 #ifndef __iplatformframecallback__ 6 #define __iplatformframecallback__ 10 #include "../vstguifwd.h" 31 class IPlatformFrameCallback
34 virtual bool platformDrawRect (CDrawContext* context,
const CRect& rect) = 0;
36 virtual CMouseEventResult platformOnMouseDown (CPoint& where,
const CButtonState& buttons) = 0;
37 virtual CMouseEventResult platformOnMouseMoved (CPoint& where,
const CButtonState& buttons) = 0;
38 virtual CMouseEventResult platformOnMouseUp (CPoint& where,
const CButtonState& buttons) = 0;
39 virtual CMouseEventResult platformOnMouseExited (CPoint& where,
const CButtonState& buttons) = 0;
40 virtual bool platformOnMouseWheel (
const CPoint &where,
const CMouseWheelAxis &axis,
const float &distance,
const CButtonState &buttons) = 0;
42 virtual bool platformOnDrop (IDataPackage* drag,
const CPoint& where) = 0;
43 virtual void platformOnDragEnter (IDataPackage* drag,
const CPoint& where) = 0;
44 virtual void platformOnDragLeave (IDataPackage* drag,
const CPoint& where) = 0;
45 virtual void platformOnDragMove (IDataPackage* drag,
const CPoint& where) = 0;
47 virtual bool platformOnKeyDown (
VstKeyCode& keyCode) = 0;
48 virtual bool platformOnKeyUp (
VstKeyCode& keyCode) = 0;
50 virtual void platformOnActivate (
bool state) = 0;
51 virtual void platformOnWindowActivate (
bool state) = 0;
53 virtual void platformScaleFactorChanged (
double newScaleFactor) = 0;
55 #if VSTGUI_TOUCH_EVENT_HANDLING 56 virtual void platformOnTouchEvent (ITouchEvent& event) = 0;
62 class IPlatformFrameConfig
65 virtual ~IPlatformFrameConfig () noexcept = default;
73 #endif // __iplatformframecallback__ Definition: vstkeycode.h:12
Definition: customcontrols.cpp:8