ivaria/hudmanager.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2010-11 Christian Van Brussel, Institute of Information 00003 and Communication Technologies, Electronics and Applied Mathematics 00004 at Universite catholique de Louvain, Belgium 00005 http://www.uclouvain.be/en-icteam.html 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public 00018 License along with this library; if not, write to the Free 00019 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 #ifndef __CS_IVARIA_HUDMANAGER_H__ 00022 #define __CS_IVARIA_HUDMANAGER_H__ 00023 00032 #include "cssysdef.h" 00033 #include "csutil/scf.h" 00034 #include <stdarg.h> 00035 00036 struct iStringArray; 00037 00038 namespace CS { 00039 namespace Utility { 00040 00053 struct iHUDManager : public virtual iBase 00054 { 00055 SCF_INTERFACE (CS::Utility::iHUDManager, 2, 0, 0); 00056 00062 virtual void SwitchKeysPage () = 0; 00063 00069 void WriteShadow (int x, int y, int color, const char *str,...) const 00070 { 00071 va_list args; 00072 va_start(args, str); 00073 WriteShadowV(x, y, color, str, args); 00074 va_end(args); 00075 } 00081 virtual void WriteShadowV (int x, int y, int color, const char *str, va_list) const = 0; 00087 void Write (int x, int y, int fg, int color, const char *str,...) const 00088 { 00089 va_list args; 00090 va_start(args, str); 00091 Write(x, y, fg, color, str, args); 00092 va_end(args); 00093 } 00099 virtual void WriteV (int x, int y, int fg, int color, const char *str, va_list) const = 0; 00100 00105 virtual void SetEnabled (bool enabled) = 0; 00106 00111 virtual bool GetEnabled () const = 0; 00112 00119 virtual iStringArray* GetKeyDescriptions () = 0; 00120 00125 virtual iStringArray* GetStateDescriptions () = 0; 00126 }; 00127 00128 } //namespace Utility 00129 } //namespace CS 00130 00133 #endif // __CS_IVARIA_HUDMANAGER_H__
Generated for Crystal Space 2.1 by doxygen 1.6.1
