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/core/ifwl_picturebox.h" | 7 #include "xfa/fwl/core/ifwl_picturebox.h" |
8 | 8 |
| 9 #include "xfa/fwl/core/cfwl_picturebox.h" |
9 #include "xfa/fwl/core/fwl_noteimp.h" | 10 #include "xfa/fwl/core/fwl_noteimp.h" |
10 #include "xfa/fwl/lightwidget/cfwl_picturebox.h" | |
11 | 11 |
12 IFWL_PictureBox::IFWL_PictureBox(const CFWL_WidgetImpProperties& properties) | 12 IFWL_PictureBox::IFWL_PictureBox(const CFWL_WidgetImpProperties& properties) |
13 : IFWL_Widget(properties, nullptr), | 13 : IFWL_Widget(properties, nullptr), |
14 m_bTop(FALSE), | 14 m_bTop(FALSE), |
15 m_bVCenter(FALSE), | 15 m_bVCenter(FALSE), |
16 m_bButton(FALSE) { | 16 m_bButton(FALSE) { |
17 m_rtClient.Reset(); | 17 m_rtClient.Reset(); |
18 m_rtImage.Reset(); | 18 m_rtImage.Reset(); |
19 m_matrix.SetIdentity(); | 19 m_matrix.SetIdentity(); |
20 } | 20 } |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return FALSE; | 132 return FALSE; |
133 } | 133 } |
134 | 134 |
135 CFWL_PictureBoxImpDelegate::CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner) | 135 CFWL_PictureBoxImpDelegate::CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner) |
136 : m_pOwner(pOwner) {} | 136 : m_pOwner(pOwner) {} |
137 | 137 |
138 void CFWL_PictureBoxImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 138 void CFWL_PictureBoxImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
139 const CFX_Matrix* pMatrix) { | 139 const CFX_Matrix* pMatrix) { |
140 m_pOwner->DrawWidget(pGraphics, pMatrix); | 140 m_pOwner->DrawWidget(pGraphics, pMatrix); |
141 } | 141 } |
OLD | NEW |