summaryrefslogtreecommitdiff
path: root/objc_darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'objc_darwin.h')
-rw-r--r--objc_darwin.h8
1 files changed, 7 insertions, 1 deletions
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 <stdint.h>
-/* 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);