]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/private.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/private.h
3 // Purpose: private helpers for wxDFB implementation
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_PRIVATE_H_
11 #define _WX_DFB_PRIVATE_H_
16 #include "wx/dfb/wrapdfb.h"
17 #include <directfb_version.h>
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 /// Convert DirectFB timestamp to wxEvent one:
24 #define wxDFB_EVENT_TIMESTAMP(event) \
25 ((event).timestamp.tv_sec * 1000 + (event).timestamp.tv_usec / 1000)
28 Check if DirectFB library version is at least @a major.@a minor.@a release.
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)))
40 #endif // _WX_DFB_PRIVATE_H_