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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
9 | 9 |
10 #include "../../../core/include/fxcrt/fx_basic.h" | 10 #include "../../../core/include/fxcrt/fx_basic.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 virtual void OnCreate(PWL_CREATEPARAM& cp); | 415 virtual void OnCreate(PWL_CREATEPARAM& cp); |
416 virtual void OnCreated(); | 416 virtual void OnCreated(); |
417 virtual void OnDestroy(); | 417 virtual void OnDestroy(); |
418 | 418 |
419 virtual void OnSetFocus(); | 419 virtual void OnSetFocus(); |
420 virtual void OnKillFocus(); | 420 virtual void OnKillFocus(); |
421 | 421 |
422 virtual void OnEnabled(); | 422 virtual void OnEnabled(); |
423 virtual void OnDisabled(); | 423 virtual void OnDisabled(); |
424 | 424 |
425 void SetNotifyFlag(FX_BOOL bNotifying = TRUE) { m_bNotifying = bNotifying; }; | 425 void SetNotifyFlag(FX_BOOL bNotifying = TRUE) { m_bNotifying = bNotifying; } |
426 | 426 |
427 FX_BOOL IsValid() const; | 427 FX_BOOL IsValid() const; |
428 PWL_CREATEPARAM GetCreationParam() const; | 428 PWL_CREATEPARAM GetCreationParam() const; |
429 FX_BOOL IsNotifying() const { return m_bNotifying; } | 429 FX_BOOL IsNotifying() const { return m_bNotifying; } |
430 | 430 |
431 void InvalidateRectMove(const CPDF_Rect& rcOld, const CPDF_Rect& rcNew); | 431 void InvalidateRectMove(const CPDF_Rect& rcOld, const CPDF_Rect& rcNew); |
432 | 432 |
433 void PWLtoWnd(const CPDF_Point& point, int32_t& x, int32_t& y) const; | 433 void PWLtoWnd(const CPDF_Point& point, int32_t& x, int32_t& y) const; |
434 FX_RECT PWLtoWnd(const CPDF_Rect& rect) const; | 434 FX_RECT PWLtoWnd(const CPDF_Rect& rect) const; |
435 FX_HWND GetAttachedHWnd() const; | 435 FX_HWND GetAttachedHWnd() const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 CPDF_Rect m_rcWindow; | 467 CPDF_Rect m_rcWindow; |
468 CPDF_Rect m_rcClip; | 468 CPDF_Rect m_rcClip; |
469 | 469 |
470 FX_BOOL m_bCreated; | 470 FX_BOOL m_bCreated; |
471 FX_BOOL m_bVisible; | 471 FX_BOOL m_bVisible; |
472 FX_BOOL m_bNotifying; | 472 FX_BOOL m_bNotifying; |
473 FX_BOOL m_bEnabled; | 473 FX_BOOL m_bEnabled; |
474 }; | 474 }; |
475 | 475 |
476 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 476 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
OLD | NEW |