1 // Copyright 2016 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_ 8 #define XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_ 9 10 #include "core/fxcrt/fx_coordinates.h" 11 #include "xfa/fwl/cfwl_message.h" 12 13 class CFWL_MessageMouseWheel final : public CFWL_Message { 14 public: 15 CFWL_MessageMouseWheel(CFWL_Widget* destination, 16 const CFX_PointF& pos, 17 const CFX_Vector& delta); 18 ~CFWL_MessageMouseWheel() override; 19 set_pos(const CFX_PointF & pos)20 void set_pos(const CFX_PointF& pos) { pos_ = pos; } pos()21 const CFX_PointF& pos() const { return pos_; } 22 delta()23 const CFX_Vector& delta() const { return delta_; } 24 25 private: 26 CFX_PointF pos_; 27 const CFX_Vector delta_; 28 }; 29 30 #endif // XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_ 31