forked from AuroraMiddleware/gtk
7ed5816829
So a window can be maximized/zoomed again after being moved away from its maximized position. This makes the zoom button on non-CSD windows work as before.
59 lines
1.5 KiB
Objective-C
59 lines
1.5 KiB
Objective-C
/* GdkQuartzNSWindow.h
|
|
*
|
|
* Copyright (C) 2005-2007 Imendio AB
|
|
*
|
|
* 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
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#import <AppKit/AppKit.h>
|
|
#import <Foundation/Foundation.h>
|
|
#include <glib.h>
|
|
|
|
@interface GdkQuartzNSWindow : NSWindow {
|
|
BOOL inMove;
|
|
BOOL inShowOrHide;
|
|
BOOL initialPositionKnown;
|
|
|
|
/* Manually triggered move/resize (not by the window manager) */
|
|
BOOL inManualMove;
|
|
BOOL inManualResize;
|
|
BOOL inTrackManualResize;
|
|
NSPoint initialMoveLocation;
|
|
NSPoint initialResizeLocation;
|
|
NSRect initialResizeFrame;
|
|
|
|
NSRect lastUnmaximizedFrame;
|
|
NSRect lastMaximizedFrame;
|
|
BOOL inMaximizeTransition;
|
|
}
|
|
|
|
-(BOOL)isInMove;
|
|
-(void)beginManualMove;
|
|
-(BOOL)trackManualMove;
|
|
-(BOOL)isInManualResizeOrMove;
|
|
-(void)beginManualResize;
|
|
-(BOOL)trackManualResize;
|
|
-(void)showAndMakeKey:(BOOL)makeKey;
|
|
-(void)hide;
|
|
|
|
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
|
|
-(void)setStyleMask:(NSUInteger)styleMask;
|
|
#endif
|
|
|
|
@end
|
|
|
|
|
|
|
|
|