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
;
48 BOOL shapeChangedSinceLastDraw
;
51 CGFloat colorKeyRed
, colorKeyGreen
, colorKeyBlue
;
53 BOOL usePerPixelAlpha
;
55 NSUInteger lastModifierFlags
;
57 NSTimer
* liveResizeDisplayTimer
;
58 NSRect frameAtResizeStart
;
59 BOOL resizingFromLeft
, resizingFromTop
;
64 NSSize savedContentMinSize
;
65 NSSize savedContentMaxSize
;
67 BOOL enteringFullScreen
;
68 BOOL exitingFullScreen
;
69 NSRect nonFullscreenFrame
;
70 NSTimeInterval enteredFullScreenTime
;
73 NSPoint dragStartPosition
;
74 NSPoint dragWindowStartPosition
;
76 BOOL ignore_windowDeminiaturize
;
77 BOOL ignore_windowResize
;
81 @
property (retain
, readonly
, nonatomic
) WineEventQueue
* queue
;
82 @
property (readonly
, nonatomic
) BOOL disabled
;
83 @
property (readonly
, nonatomic
) BOOL noActivate
;
84 @
property (readonly
, nonatomic
) BOOL floating
;
85 @
property (readonly
, getter
=isFullscreen
, nonatomic
) BOOL fullscreen
;
86 @
property (readonly
, getter
=isFakingClose
, nonatomic
) BOOL fakingClose
;
88 - (NSInteger
) minimumLevelForActive
:(BOOL
)active
;
89 - (void) updateFullscreen
;
91 - (void) postKeyEvent
:(NSEvent
*)theEvent
;
92 - (void) postBroughtForwardEvent
;
94 - (WineWindow
*) ancestorWineWindow
;
96 - (void) updateForCursorClipping
;