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_H | 7 #ifndef _FWL_PUSHBUTTON_H |
8 #define _FWL_PUSHBUTTON_H | 8 #define _FWL_PUSHBUTTON_H |
9 class CFWL_WidgetImpProperties; | 9 class CFWL_WidgetImpProperties; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 27 matching lines...) Expand all Loading... |
38 #define FWL_PARTSTATE_PSB_Default (3L << 0) | 38 #define FWL_PARTSTATE_PSB_Default (3L << 0) |
39 #define FWL_PARTSTATE_PSB_Disabled (4L << 0) | 39 #define FWL_PARTSTATE_PSB_Disabled (4L << 0) |
40 #define FWL_PARTSTATE_PSB_Focused (1L << 3) | 40 #define FWL_PARTSTATE_PSB_Focused (1L << 3) |
41 #define FWL_PARTSTATE_PSB_Mask (7L << 0) | 41 #define FWL_PARTSTATE_PSB_Mask (7L << 0) |
42 class IFWL_PushButtonDP : public IFWL_DataProvider { | 42 class IFWL_PushButtonDP : public IFWL_DataProvider { |
43 public: | 43 public: |
44 virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) = 0; | 44 virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) = 0; |
45 }; | 45 }; |
46 class IFWL_PushButton : public IFWL_Widget { | 46 class IFWL_PushButton : public IFWL_Widget { |
47 public: | 47 public: |
48 static IFWL_PushButton* Create(); | 48 IFWL_PushButton(); |
49 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 49 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
50 IFWL_Widget* pOuter); | 50 IFWL_Widget* pOuter); |
51 | |
52 protected: | |
53 IFWL_PushButton(); | |
54 }; | 51 }; |
55 #endif | 52 #endif |
OLD | NEW |