Panda3D

get_x11.h

00001 // Filename: get_x11.h
00002 // Created by:  drose (28Aug11)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef GET_X11_H
00016 #define GET_X11_H
00017 
00018 #include "pandabase.h"
00019 
00020 #ifdef HAVE_X11 
00021 // This header file is designed to help work around some of the
00022 // namespace spamming that X11 causes, by renaming the symbols that
00023 // X11 declares that are known to conflict with other library names
00024 // (like Apple's Core Graphics, for instance).
00025 
00026 // In order for this to work, everyone who uses X11 within Panda
00027 // should include this file instead of including the X11 headers
00028 // directly.
00029 
00030 #ifdef CPPPARSER
00031 // A simple hack so interrogate can get all of the necessary
00032 // typenames.
00033 typedef int X11_Display;
00034 typedef int X11_Window;
00035 typedef int X11_Cursor;
00036 typedef int XErrorEvent;
00037 typedef int XVisualInfo;
00038 typedef int Atom;
00039 typedef int XIM;
00040 typedef int XIC;
00041 #else
00042 
00043 #include "pre_x11_include.h"
00044 #include <X11/Xlib.h>
00045 #include <X11/Xutil.h>
00046 #include <X11/keysym.h>
00047 #include <X11/Xatom.h>
00048 
00049 #ifdef HAVE_XRANDR
00050 #include <X11/extensions/Xrandr.h>
00051 #endif  // HAVE_XRANDR
00052 
00053 #ifdef HAVE_XCURSOR
00054 #include <X11/Xcursor/Xcursor.h>
00055 #endif
00056 
00057 #ifdef HAVE_XF86DGA
00058 #include <X11/extensions/xf86dga.h>
00059 #endif
00060 
00061 #include "post_x11_include.h"
00062 
00063 #endif  // CPPPARSER
00064 #endif  // HAVE_X11
00065 
00066 #endif
 All Classes Functions Variables Enumerations