]> git.saurik.com Git - iphone-api.git/blobdiff - GraphicsServices/GSFont.h
GraphicsServices: fixed __cplusplus, added _GSEventGetGSEventRecord, organizined...
[iphone-api.git] / GraphicsServices / GSFont.h
diff --git a/GraphicsServices/GSFont.h b/GraphicsServices/GSFont.h
new file mode 100644 (file)
index 0000000..2e93391
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef GRAPHICSSERVICES_GSFONT_H_
+#define GRAPHICSSERVICES_GSFONT_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+enum {
+    kGSFontItalicTrait    = (1 <<  0),
+    kGSFontBoldTrait      = (1 <<  1),
+    kGSFontExpandedTrait  = (1 <<  5),
+    kGSFontCondensedTrait = (1 <<  6),
+    kGSFontMonoSpaceTrait = (1 << 10),
+    kGSFontVerticalTrait  = (1 << 11),
+}; typedef uint32_t GSFontSymbolicTraits;
+
+typedef struct __GSFont *GSFontRef;
+
+GSFontRef GSFontCreateWithName(const char *name, GSFontSymbolicTraits traits, float size);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif/*GRAPHICSSERVICES_GSFONT_H_*/