diff options
author | chai <chaifix@163.com> | 2018-10-19 08:36:44 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-19 08:36:44 +0800 |
commit | 7d5f055547e70fa93ee9ac944e62f8d657b9dc55 (patch) | |
tree | 081782a1541854db4b8eb69c4b43081f52711286 /src/libjin/Graphics/Font/Text.h | |
parent | 02dd1f38008594048f0e28bad01e7c6d18844198 (diff) |
*修改文件名
Diffstat (limited to 'src/libjin/Graphics/Font/Text.h')
-rw-r--r-- | src/libjin/Graphics/Font/Text.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/libjin/Graphics/Font/Text.h b/src/libjin/Graphics/Font/Text.h deleted file mode 100644 index 7256a52..0000000 --- a/src/libjin/Graphics/Font/Text.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef __LIBJIN_TEXT_H -#define __LIBJIN_TEXT_H - -#include <vector> - -namespace jin -{ - namespace graphics - { - - typedef unsigned int Codepoint; - - typedef std::vector<Codepoint> Content; - - class Text; - class Decoder; - - enum Encode - { - UTF8, // utf-8 - //UTF16, // utf-16 - ASCII, // ASCII - }; - - /* raw encoded text */ - class Text - { - public: - Text(Encode encode, const void* data); - Text(Encode encode, const void* data, unsigned int length); - ~Text(); - - const Content& getContent() const; - const Content& operator*() const; - - private: - class Iterator - { - public: - Iterator(const Iterator& itor); - Iterator(const Encode& encode, const void* data, unsigned int length); - ~Iterator(); - - Codepoint get(); - //Iterator begin(); - //Iterator end(); - void toBegin(); - void toEnd(); - Codepoint operator *(); - /* prefix ++ */ - Iterator& operator ++(); - /* postfix ++ */ - Iterator operator ++(int); - bool operator !=(const Iterator& itor); - bool operator ==(const Iterator& itor); - - private: - void operator = (const Iterator&); - - const Encode encode; - const Decoder* decoder; - const void* p; - const void* const data; - unsigned int length; - }; - - Content content; - - }; - - } // namespace graphics -} // namespace jin - -#endif
\ No newline at end of file |