mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-27 05:50:27 +00:00
c3dead2920
- brought X11 back to current for Darwin and FreeBSD - removed CairoCacheImage, added O2Surface_cairo - separated TTFFont into O2FontState_cairo/O2Font_FT/TTFFont - renamed CairoContext O2Context_cairo - added O2Context_builtin_FT which implements Onyx2D+FreeType - moved font queries to X11Display - added NSPlatform_bsd.m to AppKit - encoding change/fix(?) in NSColor.m - moved showText: into abstract class O2Context from _gdi classes - fix for ObjCModule.m to get executable path
81 lines
2.9 KiB
Objective-C
Executable File
81 lines
2.9 KiB
Objective-C
Executable File
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class O2Context,CGEvent;
|
|
|
|
typedef enum {
|
|
CGSBackingStoreRetained=0,
|
|
CGSBackingStoreNonretained=1,
|
|
CGSBackingStoreBuffered=2
|
|
} CGSBackingStoreType;
|
|
|
|
@interface CGWindow : NSObject
|
|
|
|
-(void)setDelegate:delegate;
|
|
-delegate;
|
|
|
|
-(void)invalidate;
|
|
|
|
-(O2Context *)cgContext;
|
|
|
|
-(void)setTitle:(NSString *)title;
|
|
-(void)setFrame:(NSRect)frame;
|
|
|
|
-(void)showWindowForAppActivation:(NSRect)frame;
|
|
-(void)hideWindowForAppDeactivation:(NSRect)frame;
|
|
|
|
-(void)hideWindow;
|
|
-(void)showWindowWithoutActivation;
|
|
|
|
-(void)placeAboveWindow:(CGWindow *)other;
|
|
-(void)placeBelowWindow:(CGWindow *)other;
|
|
|
|
-(void)makeKey;
|
|
-(void)captureEvents;
|
|
-(void)miniaturize;
|
|
-(void)deminiaturize;
|
|
-(BOOL)isMiniaturized;
|
|
|
|
-(void)flushBuffer;
|
|
|
|
-(NSPoint)mouseLocationOutsideOfEventStream;
|
|
|
|
-(void)sendEvent:(CGEvent *)event;
|
|
|
|
-(void)addEntriesToDeviceDictionary:(NSDictionary *)entries;
|
|
|
|
@end
|
|
|
|
@interface NSObject(CGWindow_delegate)
|
|
|
|
-(void)platformWindow:(CGWindow *)window frameChanged:(NSRect)frame didSize:(BOOL)didSize;
|
|
-(NSSize)platformWindow:(CGWindow *)window frameSizeWillChange:(NSSize)size;
|
|
-(void)platformWindowWillBeginSizing:(CGWindow *)window;
|
|
-(void)platformWindowDidEndSizing:(CGWindow *)window;
|
|
-(void)platformWindowExitMove:(CGWindow *)window;
|
|
|
|
-(void)platformWindow:(CGWindow *)window needsDisplayInRect:(NSRect)rect;
|
|
-(void)platformWindowStyleChanged:(CGWindow *)window;
|
|
-(void)platformWindowWillClose:(CGWindow *)window;
|
|
|
|
-(void)platformWindowWillMove:(CGWindow *)window;
|
|
-(void)platformWindowDidMove:(CGWindow *)window;
|
|
|
|
-(void)platformWindowDeminiaturized:(CGWindow *)window;
|
|
-(void)platformWindowMiniaturized:(CGWindow *)window;
|
|
-(void)platformWindowActivated:(CGWindow *)window;
|
|
-(void)platformWindowDeactivated:(CGWindow *)window checkForAppDeactivation:(BOOL)checkForApp;
|
|
|
|
-(BOOL)platformWindowIgnoreModalMessages:(CGWindow *)window;
|
|
|
|
-(BOOL)platformWindowSetCursorEvent:(CGWindow *)window;
|
|
|
|
@end
|