include: Add event trace flags and guid to evntrace.h.
[wine.git] / dlls / winemac.drv / cocoa_window.h
blobf5ff3b77b4680d59c70959ee96411ae47c57f1a8
1 /*
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>
29 BOOL disabled;
30 BOOL noActivate;
31 BOOL floating;
32 BOOL resizable;
33 BOOL maximized;
34 BOOL fullscreen;
35 BOOL pendingMinimize;
36 BOOL savedVisibleState;
37 WineWindow* latentParentWindow;
38 NSMutableArray* latentChildWindows;
40 void* hwnd;
41 WineEventQueue* queue;
43 void* surface;
44 pthread_mutex_t* surface_mutex;
46 NSBezierPath* shape;
47 NSData* shapeData;
48 BOOL shapeChangedSinceLastDraw;
50 BOOL colorKeyed;
51 CGFloat colorKeyRed, colorKeyGreen, colorKeyBlue;
53 BOOL usePerPixelAlpha;
55 NSUInteger lastModifierFlags;
57 NSTimer* liveResizeDisplayTimer;
58 NSRect frameAtResizeStart;
59 BOOL resizingFromLeft, resizingFromTop;
61 void* imeData;
62 BOOL commandDone;
64 NSSize savedContentMinSize;
65 NSSize savedContentMaxSize;
67 BOOL enteringFullScreen;
68 BOOL exitingFullScreen;
69 NSRect nonFullscreenFrame;
70 NSTimeInterval enteredFullScreenTime;
72 int draggingPhase;
73 NSPoint dragStartPosition;
74 NSPoint dragWindowStartPosition;
76 BOOL ignore_windowDeminiaturize;
77 BOOL ignore_windowResize;
78 BOOL fakingClose;
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;
98 @end