| 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 #ifndef XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ |
| 8 #define XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ | 8 #define XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/app/xfa_fffield.h" | 10 #include "xfa/fxfa/app/xfa_fffield.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 CXFA_FFPushButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 21 CXFA_FFPushButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 22 virtual ~CXFA_FFPushButton(); | 22 virtual ~CXFA_FFPushButton(); |
| 23 virtual void RenderWidget(CFX_Graphics* pGS, | 23 virtual void RenderWidget(CFX_Graphics* pGS, |
| 24 CFX_Matrix* pMatrix = NULL, | 24 CFX_Matrix* pMatrix = NULL, |
| 25 uint32_t dwStatus = 0, | 25 uint32_t dwStatus = 0, |
| 26 int32_t iRotate = 0); | 26 int32_t iRotate = 0); |
| 27 virtual FX_BOOL LoadWidget(); | 27 virtual FX_BOOL LoadWidget(); |
| 28 virtual void UnloadWidget(); | 28 virtual void UnloadWidget(); |
| 29 virtual FX_BOOL PerformLayout(); | 29 virtual FX_BOOL PerformLayout(); |
| 30 virtual void UpdateWidgetProperty(); | 30 virtual void UpdateWidgetProperty(); |
| 31 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); | 31 virtual void OnProcessMessage(CFWL_Message* pMessage); |
| 32 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); | 32 virtual void OnProcessEvent(CFWL_Event* pEvent); |
| 33 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 33 virtual void OnDrawWidget(CFX_Graphics* pGraphics, |
| 34 const CFX_Matrix* pMatrix = NULL); | 34 const CFX_Matrix* pMatrix = NULL); |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 void LoadHighlightCaption(); | 37 void LoadHighlightCaption(); |
| 38 void LayoutHighlightCaption(); | 38 void LayoutHighlightCaption(); |
| 39 void RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL); | 39 void RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL); |
| 40 FX_FLOAT GetLineWidth(); | 40 FX_FLOAT GetLineWidth(); |
| 41 FX_ARGB GetLineColor(); | 41 FX_ARGB GetLineColor(); |
| 42 FX_ARGB GetFillColor(); | 42 FX_ARGB GetFillColor(); |
| 43 CXFA_TextLayout* m_pRolloverTextLayout; | 43 CXFA_TextLayout* m_pRolloverTextLayout; |
| 44 CXFA_TextLayout* m_pDownTextLayout; | 44 CXFA_TextLayout* m_pDownTextLayout; |
| 45 CXFA_TextProvider* m_pDownProvider; | 45 CXFA_TextProvider* m_pDownProvider; |
| 46 CXFA_TextProvider* m_pRollProvider; | 46 CXFA_TextProvider* m_pRollProvider; |
| 47 IFWL_WidgetDelegate* m_pOldDelegate; | 47 IFWL_WidgetDelegate* m_pOldDelegate; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 #endif // XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ | 50 #endif // XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_ |
| OLD | NEW |