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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
114 PWL_SCROLLBAR_TYPE GetScrollBarType() const { return m_sbType; }; | 114 PWL_SCROLLBAR_TYPE GetScrollBarType() const { return m_sbType; } |
115 | 115 |
116 void SetNotifyForever(FX_BOOL bForever) { m_bNotifyForever = bForever; } | 116 void SetNotifyForever(FX_BOOL bForever) { m_bNotifyForever = bForever; } |
117 | 117 |
118 protected: | 118 protected: |
119 void SetScrollRange(FX_FLOAT fMin, FX_FLOAT fMax, FX_FLOAT fClientWidth); | 119 void SetScrollRange(FX_FLOAT fMin, FX_FLOAT fMax, FX_FLOAT fClientWidth); |
120 void SetScrollPos(FX_FLOAT fPos); | 120 void SetScrollPos(FX_FLOAT fPos); |
121 void MovePosButton(FX_BOOL bRefresh); | 121 void MovePosButton(FX_BOOL bRefresh); |
122 void SetScrollStep(FX_FLOAT fBigStep, FX_FLOAT fSmallStep); | 122 void SetScrollStep(FX_FLOAT fBigStep, FX_FLOAT fSmallStep); |
123 void NotifyScrollWindow(); | 123 void NotifyScrollWindow(); |
124 CPDF_Rect GetScrollArea() const; | 124 CPDF_Rect GetScrollArea() const; |
(...skipping 23 matching lines...) Expand all 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 |