Simple SFML GUI  0.2a
S.hpp
1 #ifndef S_HPP
2 #define S_HPP
3 
4 #include "SSG/SSG.hpp"
5 
6 typedef const char* const constString;
7 
8 namespace S {
9  constString appName = "SSG " SSG_VERSION_STRING " - demo";
10 
11  namespace path {
12  constString config = "demo.conf";
13  constString languages = "lang/list.txt";
14  namespace font {
15  constString inconsolata = "assets/Inconsolata.otf";
16  constString oxygen = "assets/OxygenMono-Regular.otf";
17  constString sansation = "assets/sansation.ttf";
18  }
19  namespace texture {
20  constString flare = "assets/flare.png";
21  constString wood = "assets/wood1.png";
22  constString input = "assets/input.png";
23  }
24  }
25 
26  namespace font {
27 #define fnt(N) constString N = #N
28  fnt(inconsolata);
29  fnt(oxygen);
30  fnt(sansation);
31 #undef fnt
32  }
33 
34  namespace texture {
35 #define tex(N) constString N = #N
36  tex(flare);
37  tex(wood);
38  tex(input);
39 #undef tex
40  }
41 
42  namespace button {
43 #define btn(N) constString N = "button."#N
44  btn(example1);
45  btn(example2);
46  btn(example3);
47  btn(example4);
48  btn(example5);
49  btn(dialogInfo);
50  btn(dialogInput);
51  btn(dialogYesNo);
52  btn(dialogYesNoCancel);
53  btn(dialogCustom);
54  btn(custom1);
55  btn(custom2);
56  btn(custom3);
57 #undef btn
58  }
59 
60  namespace label {
61 #define lbl(N) constString N = "label."#N
62  lbl(fps);
63  lbl(example1);
64  lbl(example2);
65  lbl(example3);
66  lbl(example4);
67  lbl(boolLabel);
68  lbl(info);
69  lbl(windowMode);
70  lbl(resolution);
71  lbl(vsync);
72  lbl(frameLimit);
73  lbl(showFps);
74 #undef lbl
75  }
76 
77  namespace tab {
78 #define tab(N) constString N = "tab."#N
79  tab(t1);
80  tab(t2);
81  tab(t3);
82  tab(elements);
83  tab(dialogs);
84  tab(panelModels);
85  tab(panelTabbed);
86  tab(options);
87 #undef tab
88  }
89 
90  namespace text {
91 #define txt(N) constString N = "text."#N
92  txt(defaultElements);
93  txt(customizedElements);
94  txt(disabled);
95  txt(gradient1);
96  txt(gradient2);
97  txt(gradient3);
98  txt(gradient4);
99  txt(dialogInfo);
100  txt(dialogInput);
101  txt(clickAgainToExit);
102  txt(lorem);
103  txt(loremIpsum);
104  txt(alignJustify);
105  txt(alignCenter);
106  txt(alignLeft);
107  txt(alignRight);
108  txt(tabContent1);
109  txt(tabContent2);
110  txt(tabContent3);
111 #undef txt
112  }
113 
114  namespace dialog {
115 #define dlg(N) constString N = "dialog."#N
116  dlg(info);
117  dlg(input);
118  dlg(yesNo);
119  dlg(yesNoCancel);
120  dlg(custom);
121 #undef dlg
122  }
123 }
124 
125 #endif // S_HPP
Definition: S.hpp:8