00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #ifndef GCN_DEFAULTFONT_HPP
00056 #define GCN_DEFAULTFONT_HPP
00057
00058 #include "guichan/font.h"
00059 #include "guichan/platform.h"
00060
00061 namespace gcn
00062 {
00067 class GCN_CORE_DECLSPEC DefaultFont : public Font
00068 {
00069 public:
00070
00074 virtual ~DefaultFont(){}
00075
00090 virtual int drawGlyph(Graphics* graphics, unsigned char glyph, int x, int y);
00091
00092
00093
00094
00095 virtual void drawString(Graphics* graphics, const std::string& text, int x, int y);
00096
00097 virtual int getWidth(const std::string& text) const;
00098
00099 virtual int getHeight() const;
00100
00101 virtual int getStringIndexAt(const std::string& text, int x);
00102 };
00103 }
00104
00105 #endif // end GCN_DEFAULTFONT_HPP