OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_ |
9 | 9 |
10 #include "PWL_Wnd.h" | 10 #include "PWL_Wnd.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 public: | 35 public: |
36 CPWL_SBButton(PWL_SCROLLBAR_TYPE eScrollBarType, | 36 CPWL_SBButton(PWL_SCROLLBAR_TYPE eScrollBarType, |
37 PWL_SBBUTTON_TYPE eButtonType); | 37 PWL_SBBUTTON_TYPE eButtonType); |
38 ~CPWL_SBButton() override; | 38 ~CPWL_SBButton() override; |
39 | 39 |
40 // CPWL_Wnd | 40 // CPWL_Wnd |
41 CFX_ByteString GetClassName() const override; | 41 CFX_ByteString GetClassName() const override; |
42 void OnCreate(PWL_CREATEPARAM& cp) override; | 42 void OnCreate(PWL_CREATEPARAM& cp) override; |
43 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; | 43 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; |
44 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 44 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
45 CPDF_Matrix* pUser2Device) override; | 45 CFX_Matrix* pUser2Device) override; |
46 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; | 46 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
47 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; | 47 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; |
48 FX_BOOL OnMouseMove(const CPDF_Point& point, FX_DWORD nFlag) override; | 48 FX_BOOL OnMouseMove(const CPDF_Point& point, FX_DWORD nFlag) override; |
49 | 49 |
50 protected: | 50 protected: |
51 PWL_SCROLLBAR_TYPE m_eScrollBarType; | 51 PWL_SCROLLBAR_TYPE m_eScrollBarType; |
52 PWL_SBBUTTON_TYPE m_eSBButtonType; | 52 PWL_SBBUTTON_TYPE m_eSBButtonType; |
53 | 53 |
54 FX_BOOL m_bMouseDown; | 54 FX_BOOL m_bMouseDown; |
55 }; | 55 }; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 public: | 93 public: |
94 CPWL_ScrollBar(PWL_SCROLLBAR_TYPE sbType = SBT_HSCROLL); | 94 CPWL_ScrollBar(PWL_SCROLLBAR_TYPE sbType = SBT_HSCROLL); |
95 ~CPWL_ScrollBar() override; | 95 ~CPWL_ScrollBar() override; |
96 | 96 |
97 // CPWL_Wnd | 97 // CPWL_Wnd |
98 CFX_ByteString GetClassName() const override; | 98 CFX_ByteString GetClassName() const override; |
99 void OnCreate(PWL_CREATEPARAM& cp) override; | 99 void OnCreate(PWL_CREATEPARAM& cp) override; |
100 void RePosChildWnd() override; | 100 void RePosChildWnd() override; |
101 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; | 101 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; |
102 void DrawThisAppearance(CFX_RenderDevice* pDevice, | 102 void DrawThisAppearance(CFX_RenderDevice* pDevice, |
103 CPDF_Matrix* pUser2Device) override; | 103 CFX_Matrix* pUser2Device) override; |
104 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; | 104 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) override; |
105 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; | 105 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_DWORD nFlag) override; |
106 void OnNotify(CPWL_Wnd* pWnd, | 106 void OnNotify(CPWL_Wnd* pWnd, |
107 FX_DWORD msg, | 107 FX_DWORD msg, |
108 intptr_t wParam = 0, | 108 intptr_t wParam = 0, |
109 intptr_t lParam = 0) override; | 109 intptr_t lParam = 0) override; |
110 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; | 110 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; |
111 void TimerProc() override; | 111 void TimerProc() override; |
112 | 112 |
113 FX_FLOAT GetScrollBarWidth() const; | 113 FX_FLOAT GetScrollBarWidth() const; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 CPWL_SBButton* m_pPosButton; | 148 CPWL_SBButton* m_pPosButton; |
149 PWL_SCROLL_PRIVATEDATA m_sData; | 149 PWL_SCROLL_PRIVATEDATA m_sData; |
150 FX_BOOL m_bMouseDown; | 150 FX_BOOL m_bMouseDown; |
151 FX_BOOL m_bMinOrMax; | 151 FX_BOOL m_bMinOrMax; |
152 FX_BOOL m_bNotifyForever; | 152 FX_BOOL m_bNotifyForever; |
153 FX_FLOAT m_nOldPos; | 153 FX_FLOAT m_nOldPos; |
154 FX_FLOAT m_fOldPosButton; | 154 FX_FLOAT m_fOldPosButton; |
155 }; | 155 }; |
156 | 156 |
157 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_ | 157 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_ |
OLD | NEW |