Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / theme / pushbuttontp.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FWL_PUSHBUTTONTP_H\r
8 #define _FWL_PUSHBUTTONTP_H\r
9 class CFWL_WidgetTP;\r
10 class CFWL_PushButtonTP;\r
11 class CFWL_PushButtonTP : public CFWL_WidgetTP\r
12 {\r
13 public:\r
14     CFWL_PushButtonTP();\r
15     virtual ~CFWL_PushButtonTP();\r
16     virtual FX_BOOL             IsValidWidget(IFWL_Widget *pWidget);\r
17     virtual FX_DWORD    SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_BOOL bChildren = TRUE);\r
18     virtual FX_BOOL             DrawBackground(CFWL_ThemeBackground *pParams);\r
19     virtual FX_LPVOID   GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapacity);\r
20     virtual FWL_ERR             Initialize();\r
21     virtual FWL_ERR             Finalize();\r
22 protected:\r
23     void        SetThemeData(FX_DWORD dwID);\r
24     void        SetTopLineColor(FX_DWORD *pData);\r
25     void        SetLeftLineColor(FX_DWORD *pData);\r
26     void        SetRightLineColor(FX_DWORD *pData);\r
27     void        SetBottomLineColor(FX_DWORD *pData);\r
28     void        SetBackgroudColor(FX_DWORD *pData);\r
29     void        SetCaptionColor(FX_DWORD *pData);\r
30     void        SetCornerColor(FX_DWORD *pData);\r
31     FX_INT32    GetColorID(FX_DWORD dwStates);\r
32 \r
33     struct PBThemeData : CFX_Object {\r
34     public:\r
35         FX_ARGB clrBorder[5];\r
36         FX_ARGB clrStart[5];\r
37         FX_ARGB clrEnd[5];\r
38         FX_ARGB clrFill[5];\r
39     } *m_pThemeData;\r
40 };\r
41 #endif\r