mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
Stub a couple things and define some constants
This commit is contained in:
parent
f585c80808
commit
a2fe3674f3
@ -417,6 +417,9 @@ set(AppKit_sources
|
||||
|
||||
NSMovie.m
|
||||
NSMovieView.m
|
||||
|
||||
NSTextInput.m
|
||||
NSInputManager.m
|
||||
)
|
||||
|
||||
set_source_files_properties(${AppKit_sources} LANGUAGE C)
|
||||
|
@ -34,6 +34,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
static int NSColor_ignoresAlpha = -1;
|
||||
|
||||
NSString *const NSSystemColorsDidChangeNotification = @"NSSystemColorsDidChangeNotification";
|
||||
|
||||
@interface NSColor (private)
|
||||
- (NSString *) catalogName;
|
||||
- (NSString *) colorName;
|
||||
|
5
AppKit/NSInputManager.m
Normal file
5
AppKit/NSInputManager.m
Normal file
@ -0,0 +1,5 @@
|
||||
#import <AppKit/NSInputManager.h>
|
||||
|
||||
@implementation NSInputManager
|
||||
|
||||
@end
|
@ -48,6 +48,7 @@ const NSPasteboardType NSTabularTextPboardType = @"NSTabularTextPboardType";
|
||||
const NSPasteboardType NSTIFFPboardType = @"NSTIFFPboardType";
|
||||
const NSPasteboardType NSURLPboardType = @"NSURLPboardType";
|
||||
const NSPasteboardType NSHTMLPboardType = @"Apple HTML pasteboard type";
|
||||
const NSPasteboardType NSVCardPboardType = @"NSVCardPboardType";
|
||||
|
||||
const NSPasteboardType NSFilesPromisePboardType =
|
||||
@"Apple files promise pasteboard type";
|
||||
|
@ -57,6 +57,8 @@ NSString *const NSPrintHorizontallyCentered = @"NSPrintHorizontallyCentered";
|
||||
NSString *const NSPrintVerticallyCentered = @"NSPrintVerticallyCentered";
|
||||
|
||||
NSString *const NSPrintHeaderAndFooter = @"NSPrintHeaderAndFooter";
|
||||
NSString *const NSPrintMustCollate = @"NSPrintMustCollate";
|
||||
NSString *const NSPrintSelectionOnly = @"NSPrintSelectionOnly";
|
||||
|
||||
const NSPrintingPaginationMode NSFitPagination = NSPrintingPaginationModeFit;
|
||||
const NSPrintingPaginationMode NSAutoPagination =
|
||||
|
7
AppKit/NSTextInput.m
Normal file
7
AppKit/NSTextInput.m
Normal file
@ -0,0 +1,7 @@
|
||||
#include <AppKit/NSTextInput.h>
|
||||
|
||||
NSString *const NSTextInputContextKeyboardSelectionDidChangeNotification = @"NSTextInputContextKeyboardSelectionDidChangeNotification";
|
||||
|
||||
@implementation NSTextInputContext
|
||||
|
||||
@end
|
@ -21,6 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
#import <ApplicationServices/ApplicationServices.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
APPKIT_EXPORT NSString *const NSSystemColorsDidChangeNotification;
|
||||
|
||||
@class NSImage;
|
||||
@class NSPasteboard;
|
||||
|
||||
|
5
AppKit/include/AppKit/NSInputManager.h
Normal file
5
AppKit/include/AppKit/NSInputManager.h
Normal file
@ -0,0 +1,5 @@
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@interface NSInputManager : NSObject
|
||||
|
||||
@end
|
@ -53,6 +53,7 @@ APPKIT_EXPORT const NSPasteboardType NSTabularTextPboardType;
|
||||
APPKIT_EXPORT const NSPasteboardType NSTIFFPboardType;
|
||||
APPKIT_EXPORT const NSPasteboardType NSURLPboardType;
|
||||
APPKIT_EXPORT const NSPasteboardType NSHTMLPboardType;
|
||||
APPKIT_EXPORT const NSPasteboardType NSVCardPboardType;
|
||||
|
||||
APPKIT_EXPORT const NSPasteboardType NSFilesPromisePboardType;
|
||||
APPKIT_EXPORT const NSPasteboardType NSPasteboardNameDrag;
|
||||
|
@ -71,6 +71,8 @@ APPKIT_EXPORT NSString *const NSPrintHorizontallyCentered;
|
||||
APPKIT_EXPORT NSString *const NSPrintVerticallyCentered;
|
||||
|
||||
APPKIT_EXPORT NSString *const NSPrintHeaderAndFooter;
|
||||
APPKIT_EXPORT NSString *const NSPrintMustCollate;
|
||||
APPKIT_EXPORT NSString *const NSPrintSelectionOnly;
|
||||
|
||||
@interface NSPrintInfo : NSObject <NSCopying> {
|
||||
NSMutableDictionary *_attributes;
|
||||
|
@ -18,6 +18,14 @@ 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/NSGeometry.h>
|
||||
#import <Foundation/NSRange.h>
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <AppKit/AppKitExport.h>
|
||||
|
||||
APPKIT_EXPORT NSString *const NSTextInputContextKeyboardSelectionDidChangeNotification;
|
||||
|
||||
@interface NSTextInputContext : NSObject
|
||||
|
||||
@end
|
||||
|
||||
@protocol NSTextInput
|
||||
- (NSRect) firstRectForCharacterRange: (NSRange) range;
|
||||
|
Loading…
Reference in New Issue
Block a user