From 67f1bcfc3c9d5dd9df61e4822dcf6abe111f3f5b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 26 Jun 2014 10:06:58 -0400 Subject: Fixed label alignment on Mac OS X for real now. --- objc_darwin.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'objc_darwin.h') diff --git a/objc_darwin.h b/objc_darwin.h index 03dafdf..87acea2 100644 --- a/objc_darwin.h +++ b/objc_darwin.h @@ -15,7 +15,7 @@ #include -/* wrapper types since the meaning of NSRect, NSSize, and NSPoint are CPU architectured-dependent; also because they're in an Objective-C-only header */ +/* wrapper types since the meaning of NSRect, NSSize, and NSPoint are CPU architecture3d-dependent; also because they're in an Objective-C-only header */ struct xrect { intptr_t x; intptr_t y; @@ -33,6 +33,11 @@ struct xpoint { intptr_t y; }; +struct xalignment { + struct xrect alignmentRect; + intptr_t baseline; +}; + /* objc_darwin.m */ extern id toNSString(char *); extern char *fromNSString(id); @@ -90,6 +95,7 @@ extern struct xsize controlPrefSize(id); extern struct xsize listboxPrefSize(id); extern struct xsize pbarPrefSize(id); extern struct xsize areaPrefSize(id); +extern struct xalignment alignmentInfo(id, struct xrect); /* sysdata_darwin.m */ extern void addControl(id, id); -- cgit v1.2.3