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_EVENT_H | 7 #ifndef _FWL_EVENT_H |
8 #define _FWL_EVENT_H | 8 #define _FWL_EVENT_H |
9 | 9 |
10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
11 | 11 |
| 12 #ifdef __cplusplus |
| 13 extern "C" { |
| 14 #endif |
| 15 |
12 typedef int FPDF_INT32; | 16 typedef int FPDF_INT32; |
13 typedef unsigned int FPDF_UINT32; | 17 typedef unsigned int FPDF_UINT32; |
14 typedef float FPDF_FLOAT; | 18 typedef float FPDF_FLOAT; |
15 //event type | 19 //event type |
16 typedef enum | 20 typedef enum |
17 { | 21 { |
18 FWL_EVENTTYPE_Mouse = 0 , | 22 FWL_EVENTTYPE_Mouse = 0 , |
19 FWL_EVENTTYPE_MouseWheel, | 23 FWL_EVENTTYPE_MouseWheel, |
20 FWL_EVENTTYPE_Key , | 24 FWL_EVENTTYPE_Key , |
21 } FWL_EVENTTYPE; | 25 } FWL_EVENTTYPE; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 //FWL_EVENTTYPE. | 278 //FWL_EVENTTYPE. |
275 FPDF_UINT32 type; | 279 FPDF_UINT32 type; |
276 union | 280 union |
277 { | 281 { |
278 struct FWL_EVENT_MOUSE mouse; | 282 struct FWL_EVENT_MOUSE mouse; |
279 struct FWL_EVENT_MOUSEWHEEL wheel; | 283 struct FWL_EVENT_MOUSEWHEEL wheel; |
280 struct FWL_EVENT_KEY key; | 284 struct FWL_EVENT_KEY key; |
281 }s; | 285 }s; |
282 }; | 286 }; |
283 | 287 |
| 288 #ifdef __cplusplus |
| 289 } |
| 290 #endif |
| 291 |
284 #endif //_FWL_EVENT_H | 292 #endif //_FWL_EVENT_H |
285 | 293 |
286 | 294 |
OLD | NEW |