mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-20 03:31:51 +00:00
parent
7beb0626be
commit
e8e5426fc4
@ -373,6 +373,7 @@ set(AppKit_sources
|
||||
NSStepper.m
|
||||
NSAccessibility.m
|
||||
NSAppearance.m
|
||||
NSAccessibilityElement.m
|
||||
)
|
||||
|
||||
set_source_files_properties(${AppKit_sources} LANGUAGE C)
|
||||
|
@ -331,6 +331,9 @@ NSString *const NSAccessibilityMainThreadIdleNotification = @"AXMainThreadIdle";
|
||||
NSString *const NSAccessibilitySupportsMainThreadIdleNotificationAttribute = @"AXSupportsMainThreadIdleNotification";
|
||||
/* End undocumented */
|
||||
|
||||
NSString * const NSAccessibilityLayoutChangedNotification = @"AXLayoutChanged";
|
||||
NSString * const NSAccessibilityUIElementsKey = @"AXUIElementsKey";
|
||||
|
||||
void NSAccessibilityPostNotification (
|
||||
id element,
|
||||
NSString *notification
|
||||
|
33
AppKit/NSAccessibilityElement.m
Normal file
33
AppKit/NSAccessibilityElement.m
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2019 Lubos Dolezel
|
||||
|
||||
Darling is free softwareyou can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http//www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <AppKit/NSAccessibilityElement.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@implementation NSAccessibilityElement
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation {
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
@ -55,6 +55,8 @@ NSString * const NSWindowWillAnimateNotification=@"NSWindowWillAnimateNotificati
|
||||
NSString * const NSWindowAnimatingNotification=@"NSWindowAnimatingNotification";
|
||||
NSString * const NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification";
|
||||
|
||||
NSString * const NSWindowDidChangeScreenNotification = @"NSWindowDidChangeScreenNotification";
|
||||
|
||||
@interface CGWindow(private)
|
||||
- (void)dirtyRect:(CGRect)rect;
|
||||
@end
|
||||
|
@ -157,5 +157,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
#import <AppKit/NSWindowController.h>
|
||||
#import <AppKit/NSWorkspace.h>
|
||||
#import <AppKit/NSAppearance.h>
|
||||
#import <AppKit/NSAccessibilityElement.h>
|
||||
|
||||
#import <ApplicationServices/ApplicationServices.h>
|
||||
|
@ -2,6 +2,7 @@
|
||||
#import <AppKit/AppKitExport.h>
|
||||
|
||||
#import <AppKit/NSAccessibilityConstants.h>
|
||||
#import <AppKit/NSAccessibilityProtocols.h>
|
||||
|
||||
APPKIT_EXPORT void NSAccessibilityPostNotification(
|
||||
id element,
|
||||
|
@ -327,3 +327,5 @@ APPKIT_EXPORT NSString *const NSAccessibilitySupportsMainThreadIdleNotificationA
|
||||
/* End undocumented */
|
||||
|
||||
APPKIT_EXPORT NSString *const NSAccessibilityErrorCodeExceptionInfo;
|
||||
APPKIT_EXPORT NSString * const NSAccessibilityLayoutChangedNotification;
|
||||
APPKIT_EXPORT NSString * const NSAccessibilityUIElementsKey;
|
||||
|
25
AppKit/include/AppKit/NSAccessibilityElement.h
Normal file
25
AppKit/include/AppKit/NSAccessibilityElement.h
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2019 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <AppKit/NSAccessibility.h>
|
||||
|
||||
@interface NSAccessibilityElement: NSObject <NSAccessibility>
|
||||
|
||||
@end
|
23
AppKit/include/AppKit/NSAccessibilityProtocols.h
Normal file
23
AppKit/include/AppKit/NSAccessibilityProtocols.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2019 Lubos Dolezel
|
||||
|
||||
Darling is free softwareyou can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http//www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@protocol NSAccessibility <NSObject>
|
||||
@end
|
@ -102,6 +102,8 @@ APPKIT_EXPORT NSString *const NSWindowWillStartLiveResizeNotification;
|
||||
APPKIT_EXPORT NSString *const NSWindowDidEndLiveResizeNotification;
|
||||
APPKIT_EXPORT NSString *const NSWindowWillBeginSheetNotification;
|
||||
|
||||
APPKIT_EXPORT NSString * const NSWindowDidChangeScreenNotification;
|
||||
|
||||
@interface NSWindow : NSResponder {
|
||||
NSRect _frame;
|
||||
NSUInteger _styleMask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user