00001 #ifndef GLT_CURSOR_H 00002 #define GLT_CURSOR_H 00003 00004 /* 00005 00006 GLT OpenGL C++ Toolkit 00007 Copyright (C) 2000-2002 Nigel Stewart 00008 Email: nigels.com@gmail.com WWW: http://www.nigels.com/glt/ 00009 00010 This library is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU Lesser General Public 00012 License as published by the Free Software Foundation; either 00013 version 2.1 of the License, or (at your option) any later version. 00014 00015 This library is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 Lesser General Public License for more details. 00019 00020 You should have received a copy of the GNU Lesser General Public 00021 License along with this library; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 00024 */ 00025 00048 class GltFont; 00049 class GltViewport; 00050 00051 #include <misc/string.h> 00052 00058 class GltCursor 00059 { 00060 public: 00062 GltCursor(const GltFont &font,const GltViewport &area); 00064 ~GltCursor(); 00065 00067 void print(const std::string &str); 00069 void print(const std::wstring &str); 00070 00071 private: 00072 00073 const GltFont &_font; 00074 const GltViewport &_area; 00075 00076 // int _y; 00077 00078 void printLine(const std::wstring &str); 00079 }; 00080 00081 #endif