webservices: Accept zero write option in WsWriteType.
[wine.git] / dlls / winemac.drv / cocoa_window.h
blobd52a9d2f8ecca04bae6a33b804a7ee0871df9aab
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 CGDirectDisplayID _lastDisplayID;
47 NSTimeInterval _lastDisplayTime;
49 NSRect wineFrame;
50 NSRect roundedWineFrame;
52 NSBezierPath* shape;
53 NSData* shapeData;
54 BOOL shapeChangedSinceLastDraw;
56 BOOL colorKeyed;
57 CGFloat colorKeyRed, colorKeyGreen, colorKeyBlue;
59 BOOL usePerPixelAlpha;
61 NSUInteger lastModifierFlags;
63 NSRect frameAtResizeStart;
64 BOOL resizingFromLeft, resizingFromTop;
66 void* imeData;
67 BOOL commandDone;
69 NSSize savedContentMinSize;
70 NSSize savedContentMaxSize;
72 BOOL enteringFullScreen;
73 BOOL exitingFullScreen;
74 NSRect nonFullscreenFrame;
75 NSTimeInterval enteredFullScreenTime;
77 int draggingPhase;
78 NSPoint dragStartPosition;
79 NSPoint dragWindowStartPosition;
81 NSTimeInterval lastDockIconSnapshot;
83 BOOL ignore_windowDeminiaturize;
84 BOOL ignore_windowResize;
85 BOOL fakingClose;
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;
108 @end