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