Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / basewidget / fwl_caret.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_CARET_H\r
8 #define _FWL_CARET_H\r
9 class CFWL_WidgetImpProperties;\r
10 class IFWL_Widget;\r
11 class IFWL_Caret;\r
12 #define FWL_CLASS_Caret                         L"FWL_CARET"\r
13 #define FWL_CLASSHASH_Caret                     671181879\r
14 #define FWL_STATE_CAT_HightLight                        1\r
15 #define FWL_PART_CAT_Background                         1\r
16 #define FWL_PARTSTATE_CAT_HightLight            1\r
17 class IFWL_Caret : public IFWL_Widget\r
18 {\r
19 public:\r
20     static IFWL_Caret* Create();\r
21     FWL_ERR             Initialize(IFWL_Widget *pOuter = NULL);\r
22     FWL_ERR             Initialize(const CFWL_WidgetImpProperties &properties, IFWL_Widget *pOuter = NULL);\r
23 \r
24     FWL_ERR             ShowCaret(FX_BOOL bFlag = TRUE);\r
25     FWL_ERR             GetFrequency(FX_DWORD &elapse);\r
26     FWL_ERR             SetFrequency(FX_DWORD elapse);\r
27     FWL_ERR             SetColor(CFX_Color crFill);\r
28 protected:\r
29     IFWL_Caret();\r
30     virtual ~IFWL_Caret();\r
31 };\r
32 #endif\r