Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / core / fwl_widgetdef.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_WIDGETDEF_H\r
8 #define _FWL_WIDGETDEF_H\r
9 #define FWL_WGTSTYLE_OverLapper                 (0L << 0)\r
10 #define FWL_WGTSTYLE_Popup                              (1L << 0)\r
11 #define FWL_WGTSTYLE_Child                              (2L << 0)\r
12 #define FWL_WGTSTYLE_Border                             (1L << 2)\r
13 #define FWL_WGTSTYLE_Caption                    (1L << 3)\r
14 #define FWL_WGTSTYLE_NarrowCaption              (1L << 4)\r
15 #define FWL_WGTSTYLE_Icon                               (1L << 5)\r
16 #define FWL_WGTSTYLE_MinimizeBox                (1L << 6)\r
17 #define FWL_WGTSTYLE_MaximizeBox                (1L << 7)\r
18 #define FWL_WGTSTYLE_CloseBox                   (1L << 8)\r
19 #define FWL_WGTSTYLE_HScroll                    (1L << 9)\r
20 #define FWL_WGTSTYLE_VScroll                    (1L << 11)\r
21 #define FWL_WGTSTYLE_LeftScrollbar              (1L << 12)\r
22 #define FWL_WGTSTYLE_LeftAlignment              (0L << 13)\r
23 #define FWL_WGTSTYLE_CenterAlignment    (1L << 13)\r
24 #define FWL_WGTSTYLE_RightAlignment             (2L << 13)\r
25 #define FWL_WGTSTYLE_TopAlignment               (0L << 15)\r
26 #define FWL_WGTSTYLE_VCenterAlignment   (1L << 15)\r
27 #define FWL_WGTSTYLE_BottomAlignment    (2L << 15)\r
28 #define FWL_WGTSTYLE_RTLReading                 (1L << 17)\r
29 #define FWL_WGTSTYLE_RTLLayout                  (1L << 18)\r
30 #define FWL_WGTSTYLE_EdgeNone                   (0L << 19)\r
31 #define FWL_WGTSTYLE_EdgeFlat                   (1L << 19)\r
32 #define FWL_WGTSTYLE_EdgeRaised                 (2L << 19)\r
33 #define FWL_WGTSTYLE_EdgeSunken                 (3L << 19)\r
34 #define FWL_WGTSTYLE_EdgeMask                   (3L << 19)\r
35 #define FWL_WGTSTYLE_Shadow                             (3L << 21)\r
36 #define FWL_WGTSTYLE_Group                              (1L << 22)\r
37 #define FWL_WGTSTYLE_TabStop                    (1L << 23)\r
38 #define FWL_WGTSTYLE_Offscreen                  (1L << 24)\r
39 #define FWL_WGTSTYLE_DragAcceptFiles    (1L << 25)\r
40 #define FWL_WGTSTYLE_TopMost                    (1L << 26)\r
41 #define FWL_WGTSTYLE_TransParent                (1L << 27)\r
42 #define FWL_WGTSTYLE_NoBackground               (1L << 28)\r
43 #define FWL_WGTSTYLE_WindowTypeMask             (3L << 0)\r
44 #define FWL_WGTSTATE_Restored                   (0L << 0)\r
45 #define FWL_WGTSTATE_Minimized                  (1L << 0)\r
46 #define FWL_WGTSTATE_Maximized                  (2L << 0)\r
47 #define FWL_WGTSTATE_Disabled                   (1L << 2)\r
48 #define FWL_WGTSTATE_Deactivated                (1L << 3)\r
49 #define FWL_WGTSTATE_Focused                    (1L << 4)\r
50 #define FWL_WGTSTATE_Invisible                  (1L << 5)\r
51 #define FWL_WGTSTATE_MAX                                (6)\r
52 #define FWL_WGTHITTEST_Unknown                  0\r
53 #define FWL_WGTHITTEST_Client                   1\r
54 #define FWL_WGTHITTEST_Left                             2\r
55 #define FWL_WGTHITTEST_Top                              3\r
56 #define FWL_WGTHITTEST_Right                    4\r
57 #define FWL_WGTHITTEST_Bottom                   5\r
58 #define FWL_WGTHITTEST_LeftTop                  6\r
59 #define FWL_WGTHITTEST_RightTop                 7\r
60 #define FWL_WGTHITTEST_LeftBottom               8\r
61 #define FWL_WGTHITTEST_RightBottom              9\r
62 #define FWL_WGTHITTEST_Icon                             10\r
63 #define FWL_WGTHITTEST_Titlebar                 11\r
64 #define FWL_WGTHITTEST_MinBox                   12\r
65 #define FWL_WGTHITTEST_MaxBox                   13\r
66 #define FWL_WGTHITTEST_CloseBox                 14\r
67 #define FWL_WGTHITTEST_HScrollBar               15\r
68 #define FWL_WGTHITTEST_VScrollBar               16\r
69 #define FWL_WGTHITTEST_Border                   17\r
70 #define FWL_WGTHITTEST_Edge                             18\r
71 #define FWL_WGTHITTEST_Edit                             19\r
72 #define FWL_WGTHITTEST_Transparent              20\r
73 #define FWL_WGTHITTEST_MAX                              21\r
74 #define FWL_VKEY_LButton                0x01\r
75 #define FWL_VKEY_RButton                0x02\r
76 #define FWL_VKEY_MButton                0x04\r
77 #define FWL_VKEY_Back           0x08\r
78 #define FWL_VKEY_Tab            0x09\r
79 #define FWL_VKEY_Clear          0x0C\r
80 #define FWL_VKEY_Return                 0x0D\r
81 #define FWL_VKEY_Shift                  0x10\r
82 #define FWL_VKEY_Control                0x11\r
83 #define FWL_VKEY_Menu                   0x12\r
84 #define FWL_VKEY_Pause                  0x13\r
85 #define FWL_VKEY_Capital                0x14\r
86 #define FWL_VKEY_Kana                   0x15\r
87 #define FWL_VKEY_Hangul                 0x15\r
88 #define FWL_VKEY_Junja                  0x17\r
89 #define FWL_VKEY_Final                  0x18\r
90 #define FWL_VKEY_Hanja                  0x19\r
91 #define FWL_VKEY_Kanji                  0x19\r
92 #define FWL_VKEY_Escape                 0x1B\r
93 #define FWL_VKEY_Convert                0x1C\r
94 #define FWL_VKEY_NonConvert             0x1D\r
95 #define FWL_VKEY_Accept                 0x1E\r
96 #define FWL_VKEY_ModeChange             0x1F\r
97 #define FWL_VKEY_Space          0x20\r
98 #define FWL_VKEY_Prior          0x21\r
99 #define FWL_VKEY_Next           0x22\r
100 #define FWL_VKEY_End            0x23\r
101 #define FWL_VKEY_Home           0x24\r
102 #define FWL_VKEY_Left           0x25\r
103 #define FWL_VKEY_Up             0x26\r
104 #define FWL_VKEY_Right          0x27\r
105 #define FWL_VKEY_Down           0x28\r
106 #define FWL_VKEY_Select         0x29\r
107 #define FWL_VKEY_Print          0x2A\r
108 #define FWL_VKEY_Execute        0x2B\r
109 #define FWL_VKEY_Snapshot       0x2C\r
110 #define FWL_VKEY_Insert         0x2D\r
111 #define FWL_VKEY_Delete         0x2E\r
112 #define FWL_VKEY_Help           0x2F\r
113 #define FWL_VKEY_0                              0x30\r
114 #define FWL_VKEY_1                              0x31\r
115 #define FWL_VKEY_2                              0x32\r
116 #define FWL_VKEY_3                              0x33\r
117 #define FWL_VKEY_4                              0x34\r
118 #define FWL_VKEY_5                              0x35\r
119 #define FWL_VKEY_6                              0x36\r
120 #define FWL_VKEY_7                              0x37\r
121 #define FWL_VKEY_8                              0x38\r
122 #define FWL_VKEY_9                              0x39\r
123 #define FWL_VKEY_A                              0x41\r
124 #define FWL_VKEY_B                              0x42\r
125 #define FWL_VKEY_C                              0x43\r
126 #define FWL_VKEY_D                              0x44\r
127 #define FWL_VKEY_E                              0x45\r
128 #define FWL_VKEY_F                              0x46\r
129 #define FWL_VKEY_G                              0x47\r
130 #define FWL_VKEY_H                              0x48\r
131 #define FWL_VKEY_I                              0x49\r
132 #define FWL_VKEY_J                              0x4A\r
133 #define FWL_VKEY_K                              0x4B\r
134 #define FWL_VKEY_L                              0x4C\r
135 #define FWL_VKEY_M                              0x4D\r
136 #define FWL_VKEY_N                              0x4E\r
137 #define FWL_VKEY_O                              0x4F\r
138 #define FWL_VKEY_P                              0x50\r
139 #define FWL_VKEY_Q                              0x51\r
140 #define FWL_VKEY_R                              0x52\r
141 #define FWL_VKEY_S                              0x53\r
142 #define FWL_VKEY_T                              0x54\r
143 #define FWL_VKEY_U                              0x55\r
144 #define FWL_VKEY_V                              0x56\r
145 #define FWL_VKEY_W                              0x57\r
146 #define FWL_VKEY_X                              0x58\r
147 #define FWL_VKEY_Y                              0x59\r
148 #define FWL_VKEY_Z                              0x5A\r
149 #define FWL_VKEY_LWin                   0x5B\r
150 #define FWL_VKEY_Command                0x5B\r
151 #define FWL_VKEY_RWin                   0x5C\r
152 #define FWL_VKEY_Apps                   0x5D\r
153 #define FWL_VKEY_Sleep                  0x5F\r
154 #define FWL_VKEY_NumPad0                0x60\r
155 #define FWL_VKEY_NumPad1                0x61\r
156 #define FWL_VKEY_NumPad2                0x62\r
157 #define FWL_VKEY_NumPad3                0x63\r
158 #define FWL_VKEY_NumPad4                0x64\r
159 #define FWL_VKEY_NumPad5                0x65\r
160 #define FWL_VKEY_NumPad6                0x66\r
161 #define FWL_VKEY_NumPad7                0x67\r
162 #define FWL_VKEY_NumPad8                0x68\r
163 #define FWL_VKEY_NumPad9                0x69\r
164 #define FWL_VKEY_Multiply               0x6A\r
165 #define FWL_VKEY_Add                    0x6B\r
166 #define FWL_VKEY_Separator              0x6C\r
167 #define FWL_VKEY_Subtract               0x6D\r
168 #define FWL_VKEY_Decimal                0x6E\r
169 #define FWL_VKEY_Divide                 0x6F\r
170 #define FWL_VKEY_F1             0x70\r
171 #define FWL_VKEY_F2             0x71\r
172 #define FWL_VKEY_F3             0x72\r
173 #define FWL_VKEY_F4             0x73\r
174 #define FWL_VKEY_F5             0x74\r
175 #define FWL_VKEY_F6             0x75\r
176 #define FWL_VKEY_F7             0x76\r
177 #define FWL_VKEY_F8             0x77\r
178 #define FWL_VKEY_F9             0x78\r
179 #define FWL_VKEY_F10            0x79\r
180 #define FWL_VKEY_F11            0x7A\r
181 #define FWL_VKEY_F12            0x7B\r
182 #define FWL_VKEY_F13            0x7C\r
183 #define FWL_VKEY_F14            0x7D\r
184 #define FWL_VKEY_F15            0x7E\r
185 #define FWL_VKEY_F16            0x7F\r
186 #define FWL_VKEY_F17            0x80\r
187 #define FWL_VKEY_F18            0x81\r
188 #define FWL_VKEY_F19            0x82\r
189 #define FWL_VKEY_F20            0x83\r
190 #define FWL_VKEY_F21            0x84\r
191 #define FWL_VKEY_F22            0x85\r
192 #define FWL_VKEY_F23            0x86\r
193 #define FWL_VKEY_F24            0x87\r
194 #define FWL_VKEY_NunLock                0x90\r
195 #define FWL_VKEY_Scroll                 0x91\r
196 #define FWL_VKEY_LShift                 0xA0\r
197 #define FWL_VKEY_RShift                 0xA1\r
198 #define FWL_VKEY_LControl               0xA2\r
199 #define FWL_VKEY_RControl               0xA3\r
200 #define FWL_VKEY_LMenu                  0xA4\r
201 #define FWL_VKEY_RMenu                  0xA5\r
202 #define FWL_VKEY_BROWSER_Back                   0xA6\r
203 #define FWL_VKEY_BROWSER_Forward                0xA7\r
204 #define FWL_VKEY_BROWSER_Refresh                0xA8\r
205 #define FWL_VKEY_BROWSER_Stop                   0xA9\r
206 #define FWL_VKEY_BROWSER_Search                 0xAA\r
207 #define FWL_VKEY_BROWSER_Favorites              0xAB\r
208 #define FWL_VKEY_BROWSER_Home                   0xAC\r
209 #define FWL_VKEY_VOLUME_Mute                    0xAD\r
210 #define FWL_VKEY_VOLUME_Down                    0xAE\r
211 #define FWL_VKEY_VOLUME_Up                              0xAF\r
212 #define FWL_VKEY_MEDIA_NEXT_Track               0xB0\r
213 #define FWL_VKEY_MEDIA_PREV_Track               0xB1\r
214 #define FWL_VKEY_MEDIA_Stop                             0xB2\r
215 #define FWL_VKEY_MEDIA_PLAY_Pause               0xB3\r
216 #define FWL_VKEY_MEDIA_LAUNCH_Mail              0xB4\r
217 #define FWL_VKEY_MEDIA_LAUNCH_MEDIA_Select              0xB5\r
218 #define FWL_VKEY_MEDIA_LAUNCH_APP1                              0xB6\r
219 #define FWL_VKEY_MEDIA_LAUNCH_APP2                              0xB7\r
220 #define FWL_VKEY_OEM_1                                  0xBA\r
221 #define FWL_VKEY_OEM_Plus                               0xBB\r
222 #define FWL_VKEY_OEM_Comma                              0xBC\r
223 #define FWL_VKEY_OEM_Minus                              0xBD\r
224 #define FWL_VKEY_OEM_Period                             0xBE\r
225 #define FWL_VKEY_OEM_2                  0xBF\r
226 #define FWL_VKEY_OEM_3                  0xC0\r
227 #define FWL_VKEY_OEM_4                  0xDB\r
228 #define FWL_VKEY_OEM_5                  0xDC\r
229 #define FWL_VKEY_OEM_6                  0xDD\r
230 #define FWL_VKEY_OEM_7                  0xDE\r
231 #define FWL_VKEY_OEM_8                  0xDF\r
232 #define FWL_VKEY_OEM_102                0xE2\r
233 #define FWL_VKEY_ProcessKey     0xE5\r
234 #define FWL_VKEY_Packet                 0xE7\r
235 #define FWL_VKEY_Attn                   0xF6\r
236 #define FWL_VKEY_Crsel                  0xF7\r
237 #define FWL_VKEY_Exsel                  0xF8\r
238 #define FWL_VKEY_Ereof                  0xF9\r
239 #define FWL_VKEY_Play                   0xFA\r
240 #define FWL_VKEY_Zoom                   0xFB\r
241 #define FWL_VKEY_NoName                 0xFC\r
242 #define FWL_VKEY_PA1                    0xFD\r
243 #define FWL_VKEY_OEM_Clear              0xFE\r
244 #define FWL_VKEY_Unknown                0\r
245 #define FWL_VKEYSTATE_Toggled   0x0001\r
246 #define FWL_VKEYSTATE_Down              0x0100\r
247 #endif\r