2 * MACDRV Cocoa window declarations
4 * Copyright 2011, 2012, 2013 Ken Thomases for CodeWeavers Inc.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #import <AppKit/AppKit.h>
24 @
class WineEventQueue
;
27 @interface WineWindow
: NSPanel
<NSWindowDelegate
>
36 BOOL savedVisibleState
;
37 WineWindow
* latentParentWindow
;
38 NSMutableArray
* latentChildWindows
;
41 WineEventQueue
* queue
;
44 pthread_mutex_t
* surface_mutex
;
46 CGDirectDisplayID _lastDisplayID
;
47 NSTimeInterval _lastDisplayTime
;
50 NSRect roundedWineFrame
;
54 BOOL shapeChangedSinceLastDraw
;
57 CGFloat colorKeyRed
, colorKeyGreen
, colorKeyBlue
;
59 BOOL usePerPixelAlpha
;
61 NSUInteger lastModifierFlags
;
63 NSRect frameAtResizeStart
;
64 BOOL resizingFromLeft
, resizingFromTop
;
69 NSSize savedContentMinSize
;
70 NSSize savedContentMaxSize
;
72 BOOL enteringFullScreen
;
73 BOOL exitingFullScreen
;
74 NSRect nonFullscreenFrame
;
75 NSTimeInterval enteredFullScreenTime
;
78 NSPoint dragStartPosition
;
79 NSPoint dragWindowStartPosition
;
81 NSTimeInterval lastDockIconSnapshot
;
83 BOOL ignore_windowDeminiaturize
;
84 BOOL ignore_windowResize
;
88 @
property (retain
, readonly
, nonatomic
) WineEventQueue
* queue
;
89 @
property (readonly
, nonatomic
) BOOL disabled
;
90 @
property (readonly
, nonatomic
) BOOL noActivate
;
91 @
property (readonly
, nonatomic
) BOOL floating
;
92 @
property (readonly
, getter
=isFullscreen
, nonatomic
) BOOL fullscreen
;
93 @
property (readonly
, getter
=isFakingClose
, nonatomic
) BOOL fakingClose
;
94 @
property (readonly
, nonatomic
) NSRect wine_fractionalFrame
;
96 - (NSInteger
) minimumLevelForActive
:(BOOL
)active
;
97 - (void) updateFullscreen
;
99 - (void) postKeyEvent
:(NSEvent
*)theEvent
;
100 - (void) postBroughtForwardEvent
;
102 - (WineWindow
*) ancestorWineWindow
;
104 - (void) updateForCursorClipping
;
106 - (void) setRetinaMode
:(int)mode
;