forked from AuroraMiddleware/gtk
aeec73f53f
and convertPointFromScreen:, making them handle all MacOS versions so that all of the if-deffing happens in the function definitions. This happens to fix issue 1518 because it turns out that contrary to the annotation in the 10.14 nNSWindow.h, convertPointToScreen and convertPointFromScreen originate in 10.14, not 10.12. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1518
63 lines
1.7 KiB
Objective-C
63 lines
1.7 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>
|
|
#include <gdk.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;
|
|
GdkWindowEdge resizeEdge;
|
|
|
|
NSRect lastUnmaximizedFrame;
|
|
NSRect lastMaximizedFrame;
|
|
NSRect lastUnfullscreenFrame;
|
|
BOOL inMaximizeTransition;
|
|
}
|
|
|
|
-(BOOL)isInMove;
|
|
-(void)beginManualMove;
|
|
-(BOOL)trackManualMove;
|
|
-(BOOL)isInManualResizeOrMove;
|
|
-(void)beginManualResize:(GdkWindowEdge)edge;
|
|
-(BOOL)trackManualResize;
|
|
-(void)showAndMakeKey:(BOOL)makeKey;
|
|
-(void)hide;
|
|
|
|
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
|
|
-(void)setStyleMask:(NSUInteger)styleMask;
|
|
#endif
|
|
- (NSPoint)convertPointToScreen:(NSPoint)point;
|
|
- (NSPoint)convertPointFromScreen:(NSPoint)point;
|
|
@end
|
|
|
|
|
|
|
|
|