Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 244 | chris | 1 | #ifndef __SYSFONT_H__ |
| 2 | #define __SYSFONT_H__ |
||
| 3 | |||
| 4 | #include "Font.h" |
||
| 5 | |||
| 6 | namespace Sexy |
||
| 7 | { |
||
| 8 | |||
| 9 | class ImageFont; |
||
| 10 | class SexyAppBase; |
||
| 11 | |||
| 12 | class SysFont : public Font |
||
| 13 | { |
||
| 14 | public: |
||
| 15 | HFONT mHFont; |
||
| 16 | SexyAppBase* mApp; |
||
| 17 | bool mDrawShadow; |
||
| 18 | bool mSimulateBold; |
||
| 19 | |||
| 20 | void Init(SexyAppBase* theApp, const std::string& theFace, int thePointSize, int theScript, bool bold, bool italics, bool underline, bool useDevCaps); |
||
| 21 | |||
| 22 | public: |
||
| 23 | SysFont(const std::string& theFace, int thePointSize, bool bold = false, bool italics = false, bool underline = false); |
||
| 24 | SysFont(SexyAppBase* theApp, const std::string& theFace, int thePointSize, int theScript = ANSI_CHARSET, bool bold = false, bool italics = false, bool underline = false); |
||
| 25 | SysFont(const SysFont& theSysFont); |
||
| 26 | |||
| 27 | virtual ~SysFont(); |
||
| 28 | |||
| 29 | ImageFont* CreateImageFont(); |
||
| 30 | virtual int StringWidth(const SexyString& theString); |
||
| 31 | virtual void DrawString(Graphics* g, int theX, int theY, const SexyString& theString, const Color& theColor, const Rect& theClipRect); |
||
| 32 | |||
| 33 | virtual Font* Duplicate(); |
||
| 34 | }; |
||
| 35 | |||
| 36 | } |
||
| 37 | |||
| 38 | #endif //__SYSFONT_H__ |