• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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_THEME_CFWL_MONTHCALENDARTP_H_
8 #define XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_
9 
10 #include "fxjs/gc/heap.h"
11 #include "xfa/fwl/theme/cfwl_widgettp.h"
12 
13 class CFWL_MonthCalendarTP final : public CFWL_WidgetTP {
14  public:
15   CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
16   ~CFWL_MonthCalendarTP() override;
17 
18   // CFWL_WidgetTP:
19   void DrawBackground(const CFWL_ThemeBackground& pParams) override;
20   void DrawText(const CFWL_ThemeText& pParams) override;
21 
22  private:
23   CFWL_MonthCalendarTP();
24 
25   void DrawTotalBK(const CFWL_ThemeBackground& pParams,
26                    const CFX_Matrix& matrix);
27   void DrawHeadBk(const CFWL_ThemeBackground& pParams,
28                   const CFX_Matrix& matrix);
29   void DrawLButton(const CFWL_ThemeBackground& pParams,
30                    const CFX_Matrix& matrix);
31   void DrawRButton(const CFWL_ThemeBackground& pParams,
32                    const CFX_Matrix& matrix);
33   void DrawDatesInBK(const CFWL_ThemeBackground& pParams,
34                      const CFX_Matrix& matrix);
35   void DrawDatesInCircle(const CFWL_ThemeBackground& pParams,
36                          const CFX_Matrix& matrix);
37   void DrawTodayCircle(const CFWL_ThemeBackground& pParams,
38                        const CFX_Matrix& matrix);
39   void DrawHSeparator(const CFWL_ThemeBackground& pParams,
40                       const CFX_Matrix& matrix);
41   void DrawWeekNumSep(const CFWL_ThemeBackground& pParams,
42                       const CFX_Matrix& matrix);
43 };
44 
45 #endif  // XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_
46