--- /dev/null
+#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_*/
#include <mach/port.h>
#import <CoreFoundation/CoreFoundation.h>
#include <CoreGraphics/CGGeometry.h>
-#include <GraphicsServices/GSWindow.h>
-typedef struct __GSFont *GSFontRef;
+#include <GraphicsServices/GSFont.h>
+#include <GraphicsServices/GSWindow.h>
#ifdef __cplusplus
extern "C" {
/*0x40:48:10:70*/ uint32_t x40; //handInfoScale scales
};
+struct GSEventApplicationInfo {
+ /*0x30:00*/ uint32_t pid;
+ /*0x34:04*/ uint32_t x34;
+ /*0x38:08*/ char name[];
+};
+
struct GSEventRecordInfo {
/*0x30:38:00:5c*/ struct GSEventHandInfo handInfo;
/*0x44:4c:14:74*/ uint32_t x44;
mach_port_name_t GSCopyPurpleSystemEventPort(void);
uint64_t GSCurrentEventTimestamp(void);
struct GSEventHandInfo GSEventGetHandInfo(GSEventRef event);
-struct CGRect GSEventGetLocationInWindow(GSEventRef ev);
+struct CGRect GSEventGetLocationInWindow(GSEventRef event);
struct GSPathInfo GSEventGetPathInfoAtIndex(GSEventRef event, unsigned index);
mach_port_name_t GSGetPurpleNamedPort(CFStringRef name);
void GSSendEvent(struct GSEventRecord *record, mach_port_name_t port);
void GSSendSystemEvent(struct GSEventRecord *record);
+struct GSEventRecord *_GSEventGetGSEventRecord(GSEventRef event);
CFArrayRef GSSystemGetCapability(CFStringRef type);
extern CFStringRef const kGSDisplayIdentifiersCapability;