| 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 _FWL_PUSHBUTTON_IMP_H | 7 #ifndef _FWL_PUSHBUTTON_IMP_H |
| 8 #define _FWL_PUSHBUTTON_IMP_H | 8 #define _FWL_PUSHBUTTON_IMP_H |
| 9 class CFWL_WidgetImp; | 9 class CFWL_WidgetImp; |
| 10 class CFWL_WidgetImpProperties; | 10 class CFWL_WidgetImpProperties; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 CFX_RectF m_rtClient; | 40 CFX_RectF m_rtClient; |
| 41 CFX_RectF m_rtCaption; | 41 CFX_RectF m_rtCaption; |
| 42 FX_BOOL m_bBtnDown; | 42 FX_BOOL m_bBtnDown; |
| 43 FX_DWORD m_dwTTOStyles; | 43 FX_DWORD m_dwTTOStyles; |
| 44 int32_t m_iTTOAlign; | 44 int32_t m_iTTOAlign; |
| 45 friend class CFWL_PushButtonImpDelegate; | 45 friend class CFWL_PushButtonImpDelegate; |
| 46 }; | 46 }; |
| 47 class CFWL_PushButtonImpDelegate : public CFWL_WidgetImpDelegate { | 47 class CFWL_PushButtonImpDelegate : public CFWL_WidgetImpDelegate { |
| 48 public: | 48 public: |
| 49 CFWL_PushButtonImpDelegate(CFWL_PushButtonImp* pOwner); | 49 CFWL_PushButtonImpDelegate(CFWL_PushButtonImp* pOwner); |
| 50 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); | 50 int32_t OnProcessMessage(CFWL_Message* pMessage) override; |
| 51 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); | 51 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; |
| 52 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 52 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
| 53 const CFX_Matrix* pMatrix = NULL); | 53 const CFX_Matrix* pMatrix = NULL) override; |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 56 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 57 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 57 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 58 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 58 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 59 void OnMouseMove(CFWL_MsgMouse* pMsg); | 59 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 60 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 60 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 61 void OnKeyDown(CFWL_MsgKey* pMsg); | 61 void OnKeyDown(CFWL_MsgKey* pMsg); |
| 62 CFWL_PushButtonImp* m_pOwner; | 62 CFWL_PushButtonImp* m_pOwner; |
| 63 }; | 63 }; |
| 64 #endif | 64 #endif |
| OLD | NEW |