]> Shamusworld >> Repos - architektonas/blob - src/base/fontchar.h
Initial removal of unnecessary rs_ prefixes from files.
[architektonas] / src / base / fontchar.h
1 #ifndef __FONTCHAR_H__
2 #define __FONTCHAR_H__
3
4 #include "block.h"
5
6 /**
7  * A character in a font is represented by this special block class.
8  *
9  * @author Andrew Mustun
10  */
11 class RS_FontChar: public RS_Block
12 {
13 public:
14     /**
15      * @param parent The font this block belongs to.
16      * @param name The name of the letter (a unicode char) used as
17      *        an identifier.
18      * @param basePoint Base point (offset) of the letter (usually 0/0).
19      */
20         RS_FontChar(RS_EntityContainer * parent, const QString & name, Vector basePoint):
21                 RS_Block(parent, RS_BlockData(name, basePoint, false)) {}
22
23         virtual ~RS_FontChar() {}
24
25         /** @return RS2::EntityFontChar */
26         virtual RS2::EntityType rtti() const
27         {
28                 return RS2::EntityFontChar;
29         }
30
31     /*friend std::ostream& operator << (std::ostream& os, const RS_FontChar& b) {
32         os << " name: " << b.getName().latin1() << "\n";
33         os << " entities: " << (RS_EntityContainer&)b << "\n";
34         return os;
35 }*/
36 protected:
37 };
38
39 #endif