UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
languageword.h
Go to the documentation of this file.
1 #ifndef UGDK_TEXT_LANGUAGEWORD_H_
2 #define UGDK_TEXT_LANGUAGEWORD_H_
3 
4 #include <ugdk/text.h>
5 #include <ugdk/ui.h>
6 #include <string>
7 
8 namespace ugdk {
9 namespace text {
10 
11 class LanguageWord {
12  public:
13  LanguageWord(const std::string& utf8_text, const std::string& font)
14  : utf8_text_(utf8_text), font_(font) {}
16 
17  const std::string& text() const { return utf8_text_; }
18  const std::string& font() const { return font_; }
19 
20  ui::Drawable* CreateLabel() const;
21 
22  protected:
23  std::string utf8_text_;
24  std::string font_;
25 };
26 
27 } // namespace text
28 } // namespace ugdk
29 
30 #endif // UGDK_TEXT_LANGUAGEWORD_H_
LanguageWord(const std::string &utf8_text, const std::string &font)
Definition: languageword.h:13
Definition: animation.h:11
Definition: drawable.h:13
const std::string & font() const
Definition: languageword.h:18
~LanguageWord()
Definition: languageword.h:15
Definition: languageword.h:11
std::string font_
Definition: languageword.h:24
ui::Drawable * CreateLabel() const
const std::string & text() const
Definition: languageword.h:17
std::string utf8_text_
Definition: languageword.h:23