00001 /* ************************************************************************************* 00002 Writer: Sebastien Bloc 00003 Copyright: 2004 00004 eMail: sebastien.bloc@free.fr 00005 URL: http://mignonsoft.free.fr 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 as published by the Free Software Foundation; either version 2 00010 of the License, or (at your option) any later version. 00011 00012 This program 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 00015 GNU General Public License for more details. 00016 http://www.gnu.org/copyleft/gpl.html 00017 ************************************************************************************* */ 00018 00019 #ifndef INCLUDE_TEXT_TEXTURE_H 00020 #define INCLUDE_TEXT_TEXTURE_H 00021 00046 class TextTexture 00047 { 00048 public: 00049 MyString text; 00050 Texture *texture; 00051 COLORREF background; 00052 COLORREF background2; 00053 COLORREF contour; 00054 COLORREF color; 00055 int xFormat; 00056 int yFormat; 00057 Face *faceText; // graphics du conteneur 00058 00059 public: 00060 TextTexture(); 00061 void operator=(char *newText); 00062 void SetText(char *newText); 00063 void SetXYFormat(int x,int y){xFormat=x; yFormat=y;} 00064 void RefreshText(); 00065 void BindTexture(Face *face); 00066 BOOL MajTexture(); 00067 void SetDegradWindowColor(BOOL isEnable); 00068 }; 00069 00070 #endif