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_widget.h" | 7 #include "xfa/fwl/cfwl_widget.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 | 268 |
269 void CFWL_Widget::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { | 269 void CFWL_Widget::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { |
270 m_pProperties->m_pThemeProvider = pThemeProvider; | 270 m_pProperties->m_pThemeProvider = pThemeProvider; |
271 } | 271 } |
272 | 272 |
273 bool CFWL_Widget::IsEnabled() const { | 273 bool CFWL_Widget::IsEnabled() const { |
274 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled) == 0; | 274 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled) == 0; |
275 } | 275 } |
276 | 276 |
277 bool CFWL_Widget::IsActive() const { | |
278 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Deactivated) == 0; | |
279 } | |
280 | |
281 bool CFWL_Widget::HasBorder() const { | 277 bool CFWL_Widget::HasBorder() const { |
282 return !!(m_pProperties->m_dwStyles & FWL_WGTSTYLE_Border); | 278 return !!(m_pProperties->m_dwStyles & FWL_WGTSTYLE_Border); |
283 } | 279 } |
284 | 280 |
285 bool CFWL_Widget::HasEdge() const { | 281 bool CFWL_Widget::HasEdge() const { |
286 return !!(m_pProperties->m_dwStyles & FWL_WGTSTYLE_EdgeMask); | 282 return !!(m_pProperties->m_dwStyles & FWL_WGTSTYLE_EdgeMask); |
287 } | 283 } |
288 | 284 |
289 bool CFWL_Widget::IsVisible() const { | 285 bool CFWL_Widget::IsVisible() const { |
290 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Invisible) == 0; | 286 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Invisible) == 0; |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 } | 704 } |
709 default: | 705 default: |
710 break; | 706 break; |
711 } | 707 } |
712 } | 708 } |
713 | 709 |
714 void CFWL_Widget::OnProcessEvent(CFWL_Event* pEvent) {} | 710 void CFWL_Widget::OnProcessEvent(CFWL_Event* pEvent) {} |
715 | 711 |
716 void CFWL_Widget::OnDrawWidget(CFX_Graphics* pGraphics, | 712 void CFWL_Widget::OnDrawWidget(CFX_Graphics* pGraphics, |
717 const CFX_Matrix* pMatrix) {} | 713 const CFX_Matrix* pMatrix) {} |
OLD | NEW |