Mercurial > otakunoraifu
comparison font/text.h @ 52:15a18fbe6f21
* Known bugs added to the README
* Code cleaning (0 -> NULL when needed, indentation, spaces, ...)
author | thib |
---|---|
date | Sat, 18 Apr 2009 18:35:39 +0000 |
parents | 223b71206888 |
children | ddbcbd000206 |
comparison
equal
deleted
inserted
replaced
51:cbb301016a4e | 52:15a18fbe6f21 |
---|---|
26 */ | 26 */ |
27 | 27 |
28 #ifndef __TEXT_H__ | 28 #ifndef __TEXT_H__ |
29 #define __TEXT_H__ | 29 #define __TEXT_H__ |
30 | 30 |
31 #include<vector> | 31 #include <vector> |
32 #include<string> | 32 #include <string> |
33 | 33 |
34 struct TextElem { | 34 struct TextElem { |
35 typedef enum {glyph, escape, color, size} ElemType; | 35 typedef enum {glyph, escape, color, size} ElemType; |
36 typedef enum { ret, pos_reset, name_start, name_end, ruby_start, ruby_startruby, ruby_end} EscapeType; | 36 typedef enum { ret, pos_reset, name_start, name_end, ruby_start, ruby_startruby, ruby_end} EscapeType; |
37 ElemType type; | 37 ElemType type; |
80 }; | 80 }; |
81 | 81 |
82 namespace XKFont { | 82 namespace XKFont { |
83 class Glyph; | 83 class Glyph; |
84 class Font; | 84 class Font; |
85 }; | 85 } |
86 | 86 |
87 struct TextGlyph { | 87 struct TextGlyph { |
88 int x,y; | 88 int x,y; |
89 enum Flag { Group = 1, LineEnd = 2, Kinsoku = 4, PhraseEnd = 8} flag; | 89 enum Flag { Group = 1, LineEnd = 2, Kinsoku = 4, PhraseEnd = 8} flag; |
90 unsigned char r, g, b; | 90 unsigned char r, g, b; |