WheelEvent.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Visualization
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeVisualization/Base.h"
16 
17 #include "CeeVisualization/MouseEvent.h"
18 
19 namespace cee {
20 namespace vis {
21 
22 //==================================================================================================
23 //
24 // Wheel event
25 //
26 //==================================================================================================
27 class CEE_VIS_EXPORT WheelEvent : public MouseEvent
28 {
29 public:
30  WheelEvent(int delta, int x, int y, MouseButtons buttonsDown, KeyboardModifiers modifiersDown);
31  virtual ~WheelEvent();
32 
33  int delta() const;
34 
35 private:
36  int m_delta; // The distance rotated, negative values indicate backward rotation, positive forward
37 };
38 
39 } // namespace vis
40 } // namespace cee
Mouse wheel event.
Definition: WheelEvent.h:27
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Mouse event.
Definition: MouseEvent.h:47
int MouseButtons
Mouse button state. The button state is a combination of LeftButton, RightButton and MiddleButton usi...
Definition: MouseEvent.h:29
int KeyboardModifiers
Keyboard modifier state. The modifier state is a combination of ShiftModifier and ControlModifier usi...
Definition: MouseEvent.h:39