summaryrefslogtreecommitdiff
path: root/osframework/source/SexyAppFramework/SysFont.h
diff options
context:
space:
mode:
Diffstat (limited to 'osframework/source/SexyAppFramework/SysFont.h')
-rw-r--r--osframework/source/SexyAppFramework/SysFont.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/SysFont.h b/osframework/source/SexyAppFramework/SysFont.h
new file mode 100644
index 0000000..f430d35
--- /dev/null
+++ b/osframework/source/SexyAppFramework/SysFont.h
@@ -0,0 +1,38 @@
+#ifndef __SYSFONT_H__
+#define __SYSFONT_H__
+
+#include "Font.h"
+
+namespace Sexy
+{
+
+class ImageFont;
+class SexyAppBase;
+
+class SysFont : public Font
+{
+public:
+ HFONT mHFont;
+ SexyAppBase* mApp;
+ bool mDrawShadow;
+ bool mSimulateBold;
+
+ void Init(SexyAppBase* theApp, const std::string& theFace, int thePointSize, int theScript, bool bold, bool italics, bool underline, bool useDevCaps);
+
+public:
+ SysFont(const std::string& theFace, int thePointSize, bool bold = false, bool italics = false, bool underline = false);
+ SysFont(SexyAppBase* theApp, const std::string& theFace, int thePointSize, int theScript = ANSI_CHARSET, bool bold = false, bool italics = false, bool underline = false);
+ SysFont(const SysFont& theSysFont);
+
+ virtual ~SysFont();
+
+ ImageFont* CreateImageFont();
+ virtual int StringWidth(const SexyString& theString);
+ virtual void DrawString(Graphics* g, int theX, int theY, const SexyString& theString, const Color& theColor, const Rect& theClipRect);
+
+ virtual Font* Duplicate();
+};
+
+}
+
+#endif //__SYSFONT_H__ \ No newline at end of file