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 XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ | 8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 class CFWL_MonthCalendar : public CFWL_Widget { | 29 class CFWL_MonthCalendar : public CFWL_Widget { |
30 public: | 30 public: |
31 CFWL_MonthCalendar(const CFWL_App* app, | 31 CFWL_MonthCalendar(const CFWL_App* app, |
32 std::unique_ptr<CFWL_WidgetProperties> properties, | 32 std::unique_ptr<CFWL_WidgetProperties> properties, |
33 CFWL_Widget* pOuter); | 33 CFWL_Widget* pOuter); |
34 ~CFWL_MonthCalendar() override; | 34 ~CFWL_MonthCalendar() override; |
35 | 35 |
36 // FWL_WidgetImp | 36 // FWL_WidgetImp |
37 FWL_Type GetClassID() const override; | 37 FWL_Type GetClassID() const override; |
38 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; | 38 CFX_RectF GetAutosizedWidgetRect() override; |
39 void Update() override; | 39 void Update() override; |
40 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 40 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
41 void OnProcessMessage(CFWL_Message* pMessage) override; | 41 void OnProcessMessage(CFWL_Message* pMessage) override; |
42 void OnDrawWidget(CFX_Graphics* pGraphics, | 42 void OnDrawWidget(CFX_Graphics* pGraphics, |
43 const CFX_Matrix* pMatrix) override; | 43 const CFX_Matrix* pMatrix) override; |
44 | 44 |
45 void SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); | 45 void SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); |
46 | 46 |
47 private: | 47 private: |
48 struct DATE { | 48 struct DATE { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 FX_FLOAT m_fDateCellHei; | 218 FX_FLOAT m_fDateCellHei; |
219 FX_FLOAT m_fTodayWid; | 219 FX_FLOAT m_fTodayWid; |
220 FX_FLOAT m_fTodayHei; | 220 FX_FLOAT m_fTodayHei; |
221 FX_FLOAT m_fTodayFlagWid; | 221 FX_FLOAT m_fTodayFlagWid; |
222 FX_FLOAT m_fMCWid; | 222 FX_FLOAT m_fMCWid; |
223 FX_FLOAT m_fMCHei; | 223 FX_FLOAT m_fMCHei; |
224 bool m_bFlag; | 224 bool m_bFlag; |
225 }; | 225 }; |
226 | 226 |
227 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ | 227 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
OLD | NEW |