X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FTitle.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FTitle.h;h=484000e615f1d275be775ccccb97b4f16c19a3c3;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Title.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Title.h new file mode 100755 index 0000000..484000e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Title.h @@ -0,0 +1,64 @@ +#ifndef TITLE_H_ +#define TITLE_H_ + +#include "envGraph.h" +#include "FontLoader_A.h" +#include "Color.h" +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Title + { + public: + Title(string texte, string fontname); + + /** + * FontType possible : + * BITMAP_13, + * BITMAP_15, + * TIMES_ROMAN_10, + * TIMES_ROMAN_24, + * HELVETICA_10, + * HELVETICA_12, + * HELVETICA_18 + */ + Title(string texte, FontType fontType = HELVETICA_12); + + void setTexte(string texte); + void setFontName(string fontname); + void setFontType(FontType fontType); + + string getTexte() const + { + return texte; + } + + string getFontName() const + { + return fontname; + } + + FontType getFontType() const + { + return fontType; + } + + private: + string texte; + string fontname; + FontType fontType; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/