Author: rmottola
Date: Sat Aug 29 00:39:48 2015
New Revision: 38942
URL: http://svn.gna.org/viewcvs/gnustep?rev=38942&view=rev
Log:
Constants and methods for Expose and other features we don't have and perhaps
never will
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Headers/AppKit/NSWindow.h
libs/gui/trunk/Source/NSWindow.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38942&r1=38941&r2=38942&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Sat Aug 29 00:39:48 2015
@@ -3,6 +3,10 @@
* Source/NSView.m
* Headers/AppKit/NSView.h
Add more (dummy) layer property stuff
+
+ * Headers/AppKit/NSWindow.h
+ * Source/NSWindow.m
+ Constants and methods for Exposé and other features we don't have and
perhaps never will
2015-08-26 Fred Kiefer <[email protected]>
Modified: libs/gui/trunk/Headers/AppKit/NSWindow.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Headers/AppKit/NSWindow.h?rev=38942&r1=38941&r2=38942&view=diff
==============================================================================
--- libs/gui/trunk/Headers/AppKit/NSWindow.h (original)
+++ libs/gui/trunk/Headers/AppKit/NSWindow.h Sat Aug 29 00:39:48 2015
@@ -106,6 +106,32 @@
NSIconWindowMask = 64, /* GNUstep extension - app icon window */
NSMiniWindowMask = 128 /* GNUstep extension - miniwindows */
};
+
+#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
+enum {
+ NSWindowCollectionBehaviorDefault = 0,
+ NSWindowCollectionBehaviorCanJoinAllSpaces = 1 << 0,
+ NSWindowCollectionBehaviorMoveToActiveSpace = 1 << 1
+};
+#endif
+#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
+enum {
+ NSWindowCollectionBehaviorManaged = 1 << 2,
+ NSWindowCollectionBehaviorTransient = 1 << 3,
+ NSWindowCollectionBehaviorStationary = 1 << 4,
+};
+enum {
+ NSWindowCollectionBehaviorParticipatesInCycle = 1 << 5,
+ NSWindowCollectionBehaviorIgnoresCycle = 1 << 6
+};
+#endif
+#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
+enum {
+ NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7,
+ NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8
+};
+#endif
+typedef NSUInteger NSWindowCollectionBehavior;
enum _NSSelectionDirection {
NSDirectSelection,
@@ -543,6 +569,11 @@
- (NSResponder*) firstResponder;
+#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
+- (NSWindowCollectionBehavior)collectionBehaviour;
+- (void)setCollectionBehaviour:(NSWindowCollectionBehavior)props;
+#endif
+
/**
* This method attempts to make aResponder the first responder.<br />
* If aResponder is already the first responder, this method has no
@@ -740,7 +771,7 @@
#endif
/*
- * Window butons
+ * Window buttons
*/
#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
+ (NSButton *) standardWindowButton: (NSWindowButton)button
Modified: libs/gui/trunk/Source/NSWindow.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSWindow.m?rev=38942&r1=38941&r2=38942&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSWindow.m (original)
+++ libs/gui/trunk/Source/NSWindow.m Sat Aug 29 00:39:48 2015
@@ -2,7 +2,7 @@
<abstract>The window class</abstract>
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996-2015 Free Software Foundation, Inc.
Author: Scott Christley <[email protected]>
Venkat Ajjanagadde <[email protected]>
@@ -2655,6 +2655,18 @@
- (void) setDynamicDepthLimit: (BOOL)flag
{
_f.dynamic_depth_limit = flag;
+}
+
+- (NSWindowCollectionBehavior)collectionBehaviour
+{
+ //TODO: we don't handle collections yet and perhaps never will fully
+ return 0;
+}
+
+- (void)setCollectionBehaviour:(NSWindowCollectionBehavior)props
+{
+ //TODO we don't handle collections yet. Perhaps certain features can be
mapped on existing ones
+ //other features are Expose specific or anyway probably not implementable
}
/*
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs