]>
Commit | Line | Data |
---|---|---|
b3c86150 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/dfb/private.h | |
3 | // Purpose: private helpers for wxDFB implementation | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2006-08-09 | |
b3c86150 VS |
6 | // Copyright: (c) 2006 REA Elektronik GmbH |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_DFB_PRIVATE_H_ | |
11 | #define _WX_DFB_PRIVATE_H_ | |
12 | ||
13 | #include "wx/intl.h" | |
14 | #include "wx/log.h" | |
15 | ||
52c8d32a | 16 | #include "wx/dfb/wrapdfb.h" |
9800ae33 | 17 | #include <directfb_version.h> |
b3c86150 | 18 | |
b3c86150 | 19 | //----------------------------------------------------------------------------- |
52c8d32a | 20 | // misc helpers |
b3c86150 VS |
21 | //----------------------------------------------------------------------------- |
22 | ||
b3c86150 VS |
23 | /// Convert DirectFB timestamp to wxEvent one: |
24 | #define wxDFB_EVENT_TIMESTAMP(event) \ | |
25 | ((event).timestamp.tv_sec * 1000 + (event).timestamp.tv_usec / 1000) | |
26 | ||
9800ae33 VZ |
27 | /** |
28 | Check if DirectFB library version is at least @a major.@a minor.@a release. | |
29 | ||
52c8d32a | 30 | @see wxCHECK_VERSION |
9800ae33 VZ |
31 | */ |
32 | #define wxCHECK_DFB_VERSION(major,minor,release) \ | |
33 | (DIRECTFB_MAJOR_VERSION > (major) || \ | |
34 | (DIRECTFB_MAJOR_VERSION == (major) && \ | |
35 | DIRECTFB_MINOR_VERSION > (minor)) || \ | |
36 | (DIRECTFB_MAJOR_VERSION == (major) && \ | |
37 | DIRECTFB_MINOR_VERSION == (minor) && \ | |
38 | DIRECTFB_MICRO_VERSION >= (release))) | |
b3c86150 VS |
39 | |
40 | #endif // _WX_DFB_PRIVATE_H_ |