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_FWL_CORE_IFWL_EDIT_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_EDIT_H_ |
8 #define XFA_FWL_CORE_IFWL_EDIT_H_ | 8 #define XFA_FWL_CORE_IFWL_EDIT_H_ |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 class IFWL_Edit : public IFWL_Widget { | 104 class IFWL_Edit : public IFWL_Widget { |
105 public: | 105 public: |
106 IFWL_Edit(const IFWL_App* app, | 106 IFWL_Edit(const IFWL_App* app, |
107 std::unique_ptr<CFWL_WidgetProperties> properties, | 107 std::unique_ptr<CFWL_WidgetProperties> properties, |
108 IFWL_Widget* pOuter); | 108 IFWL_Widget* pOuter); |
109 ~IFWL_Edit() override; | 109 ~IFWL_Edit() override; |
110 | 110 |
111 // IFWL_Widget: | 111 // IFWL_Widget: |
112 FWL_Type GetClassID() const override; | 112 FWL_Type GetClassID() const override; |
113 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 113 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
114 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; | 114 void Update() override; |
115 FWL_Error Update() override; | |
116 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 115 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
117 void SetStates(uint32_t dwStates, bool bSet = true) override; | 116 void SetStates(uint32_t dwStates, bool bSet = true) override; |
118 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 117 void DrawWidget(CFX_Graphics* pGraphics, |
119 const CFX_Matrix* pMatrix = nullptr) override; | 118 const CFX_Matrix* pMatrix = nullptr) override; |
120 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 119 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
121 void OnProcessMessage(CFWL_Message* pMessage) override; | 120 void OnProcessMessage(CFWL_Message* pMessage) override; |
122 void OnProcessEvent(CFWL_Event* pEvent) override; | 121 void OnProcessEvent(CFWL_Event* pEvent) override; |
123 void OnDrawWidget(CFX_Graphics* pGraphics, | 122 void OnDrawWidget(CFX_Graphics* pGraphics, |
124 const CFX_Matrix* pMatrix) override; | 123 const CFX_Matrix* pMatrix) override; |
125 | 124 |
126 virtual FWL_Error SetText(const CFX_WideString& wsText); | 125 virtual FWL_Error SetText(const CFX_WideString& wsText); |
127 virtual int32_t GetTextLength() const; | 126 virtual int32_t GetTextLength() const; |
128 virtual FWL_Error GetText(CFX_WideString& wsText, | 127 virtual FWL_Error GetText(CFX_WideString& wsText, |
129 int32_t nStart = 0, | 128 int32_t nStart = 0, |
130 int32_t nCount = -1) const; | 129 int32_t nCount = -1) const; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 258 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
260 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 259 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
261 void OnButtonDblClk(CFWL_MsgMouse* pMsg); | 260 void OnButtonDblClk(CFWL_MsgMouse* pMsg); |
262 void OnMouseMove(CFWL_MsgMouse* pMsg); | 261 void OnMouseMove(CFWL_MsgMouse* pMsg); |
263 void OnKeyDown(CFWL_MsgKey* pMsg); | 262 void OnKeyDown(CFWL_MsgKey* pMsg); |
264 void OnChar(CFWL_MsgKey* pMsg); | 263 void OnChar(CFWL_MsgKey* pMsg); |
265 bool OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 264 bool OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
266 }; | 265 }; |
267 | 266 |
268 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 267 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
OLD | NEW |