00001 /*************************************************************************** 00002 * Copyright (C) 2004-2005 by Reality Rift Studios * 00003 * http://www.realityrift.com - mattias@realityrift.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 #ifndef neo_gui_borderarea_h 00022 #define neo_gui_borderarea_h 00023 00027 #include "../core/platform.h" 00028 00029 #if NEO_ENABLE_GUI 00030 00031 #include "borderobject.h" 00032 #include "textarea.h" 00033 00034 namespace neo { 00035 namespace gui { 00036 00044 class BorderArea : public BorderObject 00045 { 00046 public: 00047 00049 00054 BorderArea( unsigned int id = 0, const std::string& name = "", Object* p_parent = 0, bool nocreate = false ); 00055 00057 virtual ~BorderArea(); 00058 00060 00061 void setColor( const render::Color& color ); 00062 00063 virtual BorderArea* clone() const; 00064 00065 protected: 00066 00067 virtual Area* createObject( ObjectID obj ) const; 00068 }; 00069 00077 class BorderTextArea : public BorderArea 00078 { 00079 public: 00080 00082 00087 BorderTextArea( unsigned int id = 0, const std::string& name = "", Object* p_parent = 0, bool nocreate = false ); 00088 00090 virtual ~BorderTextArea(); 00091 00093 00094 TextArea* getTextArea(); 00095 00097 00098 const TextArea* getTextArea() const; 00099 00100 virtual BorderTextArea* clone() const; 00101 00102 protected: 00103 00104 virtual Area* createObject( ObjectID obj ) const; 00105 }; 00106 00107 } 00108 } 00109 00110 #endif 00111 00112 #endif
1.5.1