wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / dfb / private.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/private.h
3 // Purpose: private helpers for wxDFB implementation
4 // Author: Vaclav Slavik
5 // Created: 2006-08-09
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
16 #include "wx/dfb/wrapdfb.h"
17 #include <directfb_version.h>
18
19 //-----------------------------------------------------------------------------
20 // misc helpers
21 //-----------------------------------------------------------------------------
22
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
27 /**
28 Check if DirectFB library version is at least @a major.@a minor.@a release.
29
30 @see wxCHECK_VERSION
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)))
39
40 #endif // _WX_DFB_PRIVATE_H_