summaryrefslogtreecommitdiff
path: root/new/uipriv_darwin.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-13 12:53:05 -0400
committerPietro Gagliardi <[email protected]>2015-04-13 12:53:05 -0400
commit963feb6c0668b3c64242607fe71f458420a91f32 (patch)
tree89876bc232359f6b166dc325a609bf27cac05ed7 /new/uipriv_darwin.h
parente4147f14afecc95db90430143d672512a9e92bdb (diff)
Converted and fixed the Mac OS X code for uiParent. I'm still not happy, but this is DEFINITELY a step in the right direction... Perhaps automatic deletion is a pipe dream :/ I should also really nail the parenting/unparenting logic, but for that I need to add one more method.
Diffstat (limited to 'new/uipriv_darwin.h')
-rw-r--r--new/uipriv_darwin.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h
index bcdc691..8516e9a 100644
--- a/new/uipriv_darwin.h
+++ b/new/uipriv_darwin.h
@@ -31,13 +31,10 @@ extern NSView *destroyedControlsView;
extern void setStandardControlFont(NSControl *);
extern void disableAutocorrect(NSTextView *);
-// container_darwin.m
-@interface uiContainer : NSView
-@property uiControl *uiChild;
-- (void)uiUpdateNow;
-- (BOOL)uiMargined;
-- (void)uiSetMargined:(BOOL)margined;
-@end
+// These are based on measurements from Interface Builder.
+// These seem to be based on Auto Layout constants, but I don't see an API that exposes these...
+#define macXMargin 20
+#define macYMargin 20
// entry_darwin.m
extern void finishNewTextField(NSTextField *, BOOL);