X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Displayable%2FINC%2FMouseWheelEvent.h;fp=WCudaMSE%2FAPI_Bilat_Displayable%2FINC%2FMouseWheelEvent.h;h=b0e917be971a8e7e81b23244925072e7e045b295;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Displayable/INC/MouseWheelEvent.h b/WCudaMSE/API_Bilat_Displayable/INC/MouseWheelEvent.h new file mode 100755 index 0000000..b0e917b --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/MouseWheelEvent.h @@ -0,0 +1,62 @@ +#ifndef MOUSE_WHEEL_EVENT_H +#define MOUSE_WHEEL_EVENT_H + +#include "MouseEvent.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +enum WheelDirection + { + WHEEL_POSITIVE, + WHEEL_NEGATIVE + }; + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE MouseWheelEvent: public MouseEvent + { + + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + MouseWheelEvent(const Panel_A &ptrPanelSource); + + MouseWheelEvent(const MouseWheelEvent& source); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~MouseWheelEvent(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + WheelDirection getDirection() const; + int getWheelNumber() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setDirection(WheelDirection direction); + + void setWheelNumber(int wheelNumber); + + private: + int wheelNumber; + WheelDirection direction; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/