StarPeak ToolKit |
|
About SPTK Downloads Documentation Examples Supported Platforms and Plugins |
00001 /*************************************************************************** 00002 sptktextpane.h - description 00003 ------------------- 00004 begin : Mon Dez 2 2002 00005 copyright : (C) 2002 by Sven Broenstrup 00006 email : starpeak@sptk.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * StarPeak OnlineMedia., hereby disclaims all copyright interest in * 00012 * the library `SPTK' written by Sven Broenstrup. * 00013 * * 00014 * Permission is hereby granted, free of charge, to any person obtaining * 00015 * a copy of this software and associated documentation files (the * 00016 * "Software"), to deal in the Software without restriction, including * 00017 * without limitation the rights to use, copy, modify, merge, publish, * 00018 * distribute, sublicense, and/or sell copies of the Software, and to * 00019 * permit persons to whom the Software is furnished to do so, subject to * 00020 * the following conditions: * 00021 * * 00022 * The above copyright notice and this permission notice shall be * 00023 * included in all copies or substantial portions of the Software. * 00024 * * 00025 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * 00026 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 00027 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.* 00028 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * 00029 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * 00030 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * 00031 * OTHER DEALINGS IN THE SOFTWARE. * 00032 * * 00033 ***************************************************************************/ 00034 00035 /*************************************************************************** 00036 * * 00037 * TODO: This Class has to be reworked while using css for formating in * 00038 * nearby future * 00039 * * 00040 ***************************************************************************/ 00041 00042 #ifndef SPTKTEXTPANE_H 00043 #define SPTKTEXTPANE_H 00044 #include "sptkpane.h" 00045 #include "../sptkcore/spdtfont.h" 00046 #include "../sptkcore/spdtcolor.h" 00047 #include <string> 00048 00053 class sptkTextPane : public sptkPane 00054 { 00055 public: 00056 sptkTextPane(); 00057 ~sptkTextPane(); 00058 00062 void setColor(spdtColor * color); 00066 spdtColor * getColor(); 00072 void setFont(spdtFont * font); 00077 spdtFont * getFont(); 00082 void setContent(std::string content); 00087 std::string getContent(); 00088 protected: // Private attributes 00090 std::string content; 00092 spdtFont * font; 00094 spdtColor * color; 00095 }; 00096 00097 #endif