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 #include "xfa/fwl/cfwl_monthcalendar.h" | 7 #include "xfa/fwl/cfwl_monthcalendar.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void CFWL_MonthCalendar::DrawWidget(CFX_Graphics* pGraphics, | 188 void CFWL_MonthCalendar::DrawWidget(CFX_Graphics* pGraphics, |
189 const CFX_Matrix* pMatrix) { | 189 const CFX_Matrix* pMatrix) { |
190 if (!pGraphics) | 190 if (!pGraphics) |
191 return; | 191 return; |
192 if (!m_pProperties->m_pThemeProvider) | 192 if (!m_pProperties->m_pThemeProvider) |
193 m_pProperties->m_pThemeProvider = GetAvailableTheme(); | 193 m_pProperties->m_pThemeProvider = GetAvailableTheme(); |
194 | 194 |
195 IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider; | 195 IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider; |
196 if (HasBorder()) | 196 if (HasBorder()) |
197 DrawBorder(pGraphics, CFWL_Part::Border, pTheme, pMatrix); | 197 DrawBorder(pGraphics, CFWL_Part::Border, pTheme, pMatrix); |
198 if (HasEdge()) | |
199 DrawEdge(pGraphics, CFWL_Part::Edge, pTheme, pMatrix); | |
200 | 198 |
201 DrawBackground(pGraphics, pTheme, pMatrix); | 199 DrawBackground(pGraphics, pTheme, pMatrix); |
202 DrawHeadBK(pGraphics, pTheme, pMatrix); | 200 DrawHeadBK(pGraphics, pTheme, pMatrix); |
203 DrawLButton(pGraphics, pTheme, pMatrix); | 201 DrawLButton(pGraphics, pTheme, pMatrix); |
204 DrawRButton(pGraphics, pTheme, pMatrix); | 202 DrawRButton(pGraphics, pTheme, pMatrix); |
205 DrawSeperator(pGraphics, pTheme, pMatrix); | 203 DrawSeperator(pGraphics, pTheme, pMatrix); |
206 DrawDatesInBK(pGraphics, pTheme, pMatrix); | 204 DrawDatesInBK(pGraphics, pTheme, pMatrix); |
207 DrawDatesInCircle(pGraphics, pTheme, pMatrix); | 205 DrawDatesInCircle(pGraphics, pTheme, pMatrix); |
208 DrawCaption(pGraphics, pTheme, pMatrix); | 206 DrawCaption(pGraphics, pTheme, pMatrix); |
209 DrawWeek(pGraphics, pTheme, pMatrix); | 207 DrawWeek(pGraphics, pTheme, pMatrix); |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 uint32_t dwSt, | 1008 uint32_t dwSt, |
1011 CFX_RectF rc, | 1009 CFX_RectF rc, |
1012 CFX_WideString& wsday) | 1010 CFX_WideString& wsday) |
1013 : iDay(day), | 1011 : iDay(day), |
1014 iDayOfWeek(dayofweek), | 1012 iDayOfWeek(dayofweek), |
1015 dwStates(dwSt), | 1013 dwStates(dwSt), |
1016 rect(rc), | 1014 rect(rc), |
1017 wsDay(wsday) {} | 1015 wsDay(wsday) {} |
1018 | 1016 |
1019 CFWL_MonthCalendar::DATEINFO::~DATEINFO() {} | 1017 CFWL_MonthCalendar::DATEINFO::~DATEINFO() {} |
OLD | NEW |