mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
6eaf5bd0f2
Manual resizing for CSD windows only worked with the bottom right corner. This extends it to work for all corners and edges. https://bugzilla.gnome.org/show_bug.cgi?id=753329
61 lines
1.6 KiB
Objective-C
61 lines
1.6 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;
|
|
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
|
|
|
|
@end
|
|
|
|
|
|
|
|
|