2013-01-07 21:44:44 +01:00
|
|
|
/*
|
|
|
|
* MACDRV Cocoa window declarations
|
|
|
|
*
|
|
|
|
* Copyright 2011, 2012, 2013 Ken Thomases for CodeWeavers Inc.
|
|
|
|
*
|
|
|
|
* 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.1 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, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
|
|
|
|
2013-01-21 07:07:58 +01:00
|
|
|
@class WineEventQueue;
|
|
|
|
|
|
|
|
|
2013-01-07 21:44:44 +01:00
|
|
|
@interface WineWindow : NSPanel <NSWindowDelegate>
|
2013-01-11 13:18:05 +01:00
|
|
|
{
|
|
|
|
BOOL disabled;
|
2013-01-11 13:18:36 +01:00
|
|
|
BOOL noActivate;
|
2013-01-11 13:18:55 +01:00
|
|
|
BOOL floating;
|
2013-01-11 13:19:36 +01:00
|
|
|
WineWindow* latentParentWindow;
|
2013-01-15 03:23:55 +01:00
|
|
|
|
2013-01-21 07:08:03 +01:00
|
|
|
void* hwnd;
|
2013-01-21 07:07:58 +01:00
|
|
|
WineEventQueue* queue;
|
|
|
|
|
2013-01-15 03:23:55 +01:00
|
|
|
void* surface;
|
|
|
|
pthread_mutex_t* surface_mutex;
|
2013-01-15 03:23:58 +01:00
|
|
|
|
|
|
|
NSBezierPath* shape;
|
|
|
|
BOOL shapeChangedSinceLastDraw;
|
2013-01-15 03:24:02 +01:00
|
|
|
|
|
|
|
BOOL colorKeyed;
|
|
|
|
CGFloat colorKeyRed, colorKeyGreen, colorKeyBlue;
|
|
|
|
|
|
|
|
BOOL usePerPixelAlpha;
|
2013-01-27 23:19:41 +01:00
|
|
|
|
2013-02-04 00:20:18 +01:00
|
|
|
NSUInteger lastModifierFlags;
|
|
|
|
|
2013-04-02 10:17:48 +02:00
|
|
|
NSTimer* liveResizeDisplayTimer;
|
|
|
|
|
2013-04-22 04:32:26 +02:00
|
|
|
void* imeData;
|
|
|
|
BOOL commandDone;
|
|
|
|
|
2013-01-27 23:19:41 +01:00
|
|
|
BOOL causing_becomeKeyWindow;
|
2013-02-04 00:20:07 +01:00
|
|
|
BOOL ignore_windowMiniaturize;
|
|
|
|
BOOL ignore_windowDeminiaturize;
|
2013-01-11 13:18:05 +01:00
|
|
|
}
|
|
|
|
|
2013-01-27 23:19:48 +01:00
|
|
|
@property (retain, readonly, nonatomic) WineEventQueue* queue;
|
2013-02-18 02:28:30 +01:00
|
|
|
@property (readonly, nonatomic) BOOL floating;
|
2013-01-27 23:19:48 +01:00
|
|
|
|
2013-05-17 01:43:33 +02:00
|
|
|
- (NSInteger) minimumLevelForActive:(BOOL)active;
|
2013-02-18 02:28:49 +01:00
|
|
|
|
2013-01-07 21:44:44 +01:00
|
|
|
@end
|