summaryrefslogtreecommitdiffstats
path: root/src/newt/native/NewtMacWindow.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-12 11:04:33 +0200
committerSven Gothel <[email protected]>2011-10-12 11:04:33 +0200
commit7b8e2ef59e08f288adc68f12a3e066476c86de52 (patch)
treead88893da683549cb807c824dfb2f0c5c0176120 /src/newt/native/NewtMacWindow.h
parent4d0c6cfe9abd8036c00e09e280605d7c5acbbf93 (diff)
Newt/OSX: Fix top/child positioning, positionChanged(), rely on native pos/size notifications
Newt/MacWindow - remove redundant manual window-move/set-size code - Use local getLocationOnScreen(..), fixes positionChanged(..) - setFrameTopLeftPoint(..) use totalHeight (w/ insets) - create: don't 'retain' the window reference (ref counter) - close: release view, - cache insets - to be used @ create
Diffstat (limited to 'src/newt/native/NewtMacWindow.h')
-rw-r--r--src/newt/native/NewtMacWindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newt/native/NewtMacWindow.h b/src/newt/native/NewtMacWindow.h
index a8931d6fc..911abb8aa 100644
--- a/src/newt/native/NewtMacWindow.h
+++ b/src/newt/native/NewtMacWindow.h
@@ -79,15 +79,20 @@
@interface NewtMacWindow : NSWindow
#endif
{
+@public
+ int cachedInsets[4]; // l, r, t, b
}
+ (BOOL) initNatives: (JNIEnv*) env forClass: (jobject) clazz;
+- (NSPoint) getLocationOnScreen: (NSPoint) p;
+
- (void) updateInsets: (JNIEnv*) env;
- (id) initWithContentRect: (NSRect) contentRect
styleMask: (NSUInteger) windowStyle
backing: (NSBackingStoreType) bufferingType
+ defer: (BOOL) deferCreation
screen:(NSScreen *)screen;
@end