Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Title.h
1 #ifndef TITLE_H_
2 #define TITLE_H_
3
4 #include "envGraph.h"
5 #include "FontLoader_A.h"
6 #include "Color.h"
7 #include <string>
8 using std::string;
9
10 /*----------------------------------------------------------------------*\
11 |* Declaration *|
12 \*---------------------------------------------------------------------*/
13
14 /*--------------------------------------*\
15 |* Public *|
16 \*-------------------------------------*/
17
18 class CBI_GRAPH Title
19 {
20 public:
21 Title(string texte, string fontname);
22
23 /**
24 * FontType possible :
25 * BITMAP_13,
26 * BITMAP_15,
27 * TIMES_ROMAN_10,
28 * TIMES_ROMAN_24,
29 * HELVETICA_10,
30 * HELVETICA_12,
31 * HELVETICA_18
32 */
33 Title(string texte, FontType fontType = HELVETICA_12);
34
35 void setTexte(string texte);
36 void setFontName(string fontname);
37 void setFontType(FontType fontType);
38
39 string getTexte() const
40 {
41 return texte;
42 }
43
44 string getFontName() const
45 {
46 return fontname;
47 }
48
49 FontType getFontType() const
50 {
51 return fontType;
52 }
53
54 private:
55 string texte;
56 string fontname;
57 FontType fontType;
58 };
59
60 #endif
61
62 /*----------------------------------------------------------------------*\
63 |* End *|
64 \*---------------------------------------------------------------------*/