2010-12-24 19:25:40 +00:00
|
|
|
/* GdkQuartzNSWindow.h
|
2005-11-22 10:03:32 +00:00
|
|
|
*
|
2007-06-16 15:41:27 +00:00
|
|
|
* Copyright (C) 2005-2007 Imendio AB
|
2005-11-22 10:03:32 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2005-11-22 10:03:32 +00:00
|
|
|
*/
|
|
|
|
|
2007-11-01 08:45:30 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
#import <Foundation/Foundation.h>
|
2007-06-16 15:41:27 +00:00
|
|
|
#include <glib.h>
|
2015-08-06 19:36:57 +00:00
|
|
|
#include <gdk.h>
|
2005-11-22 10:03:32 +00:00
|
|
|
|
2010-12-22 15:55:56 +00:00
|
|
|
@interface GdkQuartzNSWindow : NSWindow {
|
2008-01-10 19:35:53 +00:00
|
|
|
BOOL inMove;
|
|
|
|
BOOL inShowOrHide;
|
2012-11-20 09:28:58 +00:00
|
|
|
BOOL initialPositionKnown;
|
2007-10-31 11:01:56 +00:00
|
|
|
|
|
|
|
/* Manually triggered move/resize (not by the window manager) */
|
|
|
|
BOOL inManualMove;
|
|
|
|
BOOL inManualResize;
|
2007-12-20 13:25:37 +00:00
|
|
|
BOOL inTrackManualResize;
|
2007-10-31 11:01:56 +00:00
|
|
|
NSPoint initialMoveLocation;
|
|
|
|
NSPoint initialResizeLocation;
|
|
|
|
NSRect initialResizeFrame;
|
2018-03-20 10:40:08 +00:00
|
|
|
GdkSurfaceEdge resizeEdge;
|
2015-07-20 07:05:52 +00:00
|
|
|
|
|
|
|
NSRect lastUnmaximizedFrame;
|
2015-07-20 08:40:35 +00:00
|
|
|
NSRect lastMaximizedFrame;
|
2017-02-28 23:44:33 +00:00
|
|
|
NSRect lastUnfullscreenFrame;
|
2015-07-20 08:40:35 +00:00
|
|
|
BOOL inMaximizeTransition;
|
2005-11-22 10:03:32 +00:00
|
|
|
}
|
|
|
|
|
2007-06-16 15:41:27 +00:00
|
|
|
-(BOOL)isInMove;
|
2007-10-31 11:01:56 +00:00
|
|
|
-(void)beginManualMove;
|
|
|
|
-(BOOL)trackManualMove;
|
2013-12-13 01:18:01 +00:00
|
|
|
-(BOOL)isInManualResizeOrMove;
|
2018-03-20 10:40:08 +00:00
|
|
|
-(void)beginManualResize:(GdkSurfaceEdge)edge;
|
2007-10-31 11:01:56 +00:00
|
|
|
-(BOOL)trackManualResize;
|
2008-01-10 19:35:53 +00:00
|
|
|
-(void)showAndMakeKey:(BOOL)makeKey;
|
|
|
|
-(void)hide;
|
2014-10-26 11:26:48 +00:00
|
|
|
|
|
|
|
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
|
2014-08-23 14:04:46 +00:00
|
|
|
-(void)setStyleMask:(NSUInteger)styleMask;
|
2014-10-26 11:26:48 +00:00
|
|
|
#endif
|
2007-06-16 15:41:27 +00:00
|
|
|
|
2005-11-22 10:03:32 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|