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