PixelLightAPI  .
PLGraphicsLinuxIncludes.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: PLGraphicsLinuxInclude.h                       *
00003  *      Linux includes for PLGraphics
00004  *
00005  *  Copyright (C) 2002-2012 The PixelLight Team (http://www.pixellight.org/)
00006  *
00007  *  This file is part of PixelLight.
00008  *
00009  *  PixelLight is free software: you can redistribute it and/or modify
00010  *  it under the terms of the GNU Lesser General Public License as published by
00011  *  the Free Software Foundation, either version 3 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  PixelLight is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017  *  GNU Lesser General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU Lesser General Public License
00020  *  along with PixelLight. If not, see <http://www.gnu.org/licenses/>.
00021 \*********************************************************/
00022 
00023 
00024 #ifndef __PLGRAPHICS_LINUXINCLUDE_H__
00025 #define __PLGRAPHICS_LINUXINCLUDE_H__
00026 #pragma once
00027 
00028 
00029 //[-------------------------------------------------------]
00030 //[ Includes                                              ]
00031 //[-------------------------------------------------------]
00032 #include <X11/Xlib.h>
00033 
00034 
00035 //[-------------------------------------------------------]
00036 //[ Public definitions                                    ]
00037 //[-------------------------------------------------------]
00038 /**
00039 *  @brief
00040 *    Mouse buttons
00041 */
00042 #ifdef Button1
00043     namespace PLGraphicsLinuxIncludes {
00044         enum {
00045             X11_Button1 = Button1,
00046             X11_Button2 = Button2,
00047             X11_Button3 = Button3,
00048             X11_Button4 = Button4,
00049             X11_Button5 = Button5
00050         };
00051     }
00052 
00053     #undef Button1
00054     #undef Button2
00055     #undef Button3
00056     #undef Button4
00057     #undef Button5
00058 
00059     namespace XLib {
00060         enum {
00061             Button1 = PLGraphicsLinuxIncludes::X11_Button1,
00062             Button2 = PLGraphicsLinuxIncludes::X11_Button2,
00063             Button3 = PLGraphicsLinuxIncludes::X11_Button3,
00064             Button4 = PLGraphicsLinuxIncludes::X11_Button4,
00065             Button5 = PLGraphicsLinuxIncludes::X11_Button5
00066         };
00067     }
00068 #endif
00069 
00070     
00071 /**
00072 *  @brief
00073 *    Misc
00074 */
00075 #ifdef None
00076     namespace PLGraphicsLinuxIncludes {
00077         enum {
00078             X11_None = None,
00079             X11_Always = Always
00080         };
00081     }
00082 
00083     #undef None
00084     #undef Always
00085 
00086     namespace XLib {
00087         enum {
00088             None = PLGraphicsLinuxIncludes::X11_None,
00089             Always = PLGraphicsLinuxIncludes::X11_Always
00090         };
00091     }
00092 #endif
00093 
00094 
00095 #endif // __PLGRAPHICS_LINUXINCLUDE_H__


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:08:58
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported