mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Flesh out skeleton of NSAccessibility* classes.
This commit is contained in:
parent
e48d50ede1
commit
e91e5d820b
3 changed files with 134 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
DEFINE_BLOCK_TYPE(GSCustomActionHandler, BOOL, void);
|
||||
DEFINE_BLOCK_TYPE(GSCustomActionHandler, BOOL, void);
|
||||
|
||||
@interface NSAccessibilityCustomAction : NSObject
|
||||
|
||||
|
|
|
@ -26,5 +26,54 @@
|
|||
|
||||
@implementation NSAccessibilityCustomAction
|
||||
|
||||
- (instancetype)initWithName: (NSString *)name
|
||||
handler: (GSCustomActionHandler)handler
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (instancetype)initWithName: (NSString *)name
|
||||
target: (id)target
|
||||
selector: (SEL)selector
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) name
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setName: (NSString *)name
|
||||
{
|
||||
}
|
||||
|
||||
- (GSCustomActionHandler) handler
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setHandler: (GSCustomActionHandler)handler
|
||||
{
|
||||
}
|
||||
|
||||
- (id) target
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setTarget: (id)target
|
||||
{
|
||||
}
|
||||
|
||||
- (SEL) selector
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- (void) setSelector: (SEL)selector
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -25,6 +25,90 @@
|
|||
#import "AppKit/NSAccessibilityCustomRotor.h"
|
||||
|
||||
@implementation NSAccessibilityCustomRotor
|
||||
|
||||
- (instancetype) initWithLabel: (NSString *)label
|
||||
itemSearchDelegate: (id<NSAccessibilityCustomRotorItemSearchDelegate>)delegate
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (instancetype) initWithRotorType: (NSAccessibilityCustomRotorType)rotorType
|
||||
itemSearchDelegate: (id<NSAccessibilityCustomRotorItemSearchDelegate>)delegate
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSAccessibilityCustomRotorType) type
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (void) setType: (NSAccessibilityCustomRotorType)type
|
||||
{
|
||||
}
|
||||
|
||||
- (NSString *) label
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setLabel: (NSString *)label
|
||||
{
|
||||
}
|
||||
|
||||
- (id<NSAccessibilityCustomRotorItemSearchDelegate>) itemSearchDelegate
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setItemSearchDelegate: (id<NSAccessibilityCustomRotorItemSearchDelegate>) delegate
|
||||
{
|
||||
}
|
||||
|
||||
- (id<NSAccessibilityElementLoading>) itemLoadingDelegate
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setItemLoadingDelegate: (id<NSAccessibilityElementLoading>) delegate
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
// Results...
|
||||
@implementation NSAccessibilityCustomRotorItemResult : NSObject
|
||||
|
||||
- (instancetype)initWithTargetElement:(id<NSAccessibilityElement>)targetElement
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (instancetype)initWithItemLoadingToken: (id<NSAccessibilityLoadingToken>)token
|
||||
customLabel: (NSString *)customLabel
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id<NSAccessibilityElement>) targetElement;
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id<NSAccessibilityLoadingToken>) itemLoadingToken
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSRange) targetRange
|
||||
{
|
||||
return NSMakeRange(0,NSNotFound);
|
||||
}
|
||||
|
||||
- (NSString *) customLabel
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue