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_IFWL_MONTHCALENDAR_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ |
8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 class IFWL_MonthCalendar : public IFWL_Widget { | 29 class IFWL_MonthCalendar : public IFWL_Widget { |
30 public: | 30 public: |
31 class DataProvider : public IFWL_Widget::DataProvider { | 31 class DataProvider : public IFWL_Widget::DataProvider { |
32 public: | 32 public: |
33 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; | 33 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; |
34 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; | 34 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; |
35 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; | 35 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; |
36 }; | 36 }; |
37 | 37 |
38 IFWL_MonthCalendar(const IFWL_App* app, | 38 IFWL_MonthCalendar(const CFWL_App* app, |
39 std::unique_ptr<CFWL_WidgetProperties> properties, | 39 std::unique_ptr<CFWL_WidgetProperties> properties, |
40 IFWL_Widget* pOuter); | 40 IFWL_Widget* pOuter); |
41 ~IFWL_MonthCalendar() override; | 41 ~IFWL_MonthCalendar() override; |
42 | 42 |
43 // FWL_WidgetImp | 43 // FWL_WidgetImp |
44 FWL_Type GetClassID() const override; | 44 FWL_Type GetClassID() const override; |
45 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 45 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
46 void Update() override; | 46 void Update() override; |
47 void DrawWidget(CFX_Graphics* pGraphics, | 47 void DrawWidget(CFX_Graphics* pGraphics, |
48 const CFX_Matrix* pMatrix = nullptr) override; | 48 const CFX_Matrix* pMatrix = nullptr) override; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 FX_FLOAT m_fDateCellHei; | 226 FX_FLOAT m_fDateCellHei; |
227 FX_FLOAT m_fTodayWid; | 227 FX_FLOAT m_fTodayWid; |
228 FX_FLOAT m_fTodayHei; | 228 FX_FLOAT m_fTodayHei; |
229 FX_FLOAT m_fTodayFlagWid; | 229 FX_FLOAT m_fTodayFlagWid; |
230 FX_FLOAT m_fMCWid; | 230 FX_FLOAT m_fMCWid; |
231 FX_FLOAT m_fMCHei; | 231 FX_FLOAT m_fMCHei; |
232 bool m_bFlag; | 232 bool m_bFlag; |
233 }; | 233 }; |
234 | 234 |
235 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 235 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ |
OLD | NEW |