mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Header skeleton builds
This commit is contained in:
parent
eb2815acf3
commit
9769e652cd
2 changed files with 106 additions and 3 deletions
|
@ -25,18 +25,119 @@
|
|||
#ifndef _NSFontCollection_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSFontCollection_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <Foundation/NSObject>
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <AppKit/AppKitDefines.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@class NSFontDescriptor, NSLocale, NSError, NSArray, NSDictionary;
|
||||
|
||||
@interface NSFontCollection : NSObject
|
||||
enum {
|
||||
NSFontCollectionVisibilityProcess = (1UL << 0),
|
||||
NSFontCollectionVisibilityUser = (1UL << 1),
|
||||
NSFontCollectionVisibilityComputer = (1UL << 2)
|
||||
};
|
||||
typedef NSUInteger NSFontCollectionVisibility;
|
||||
|
||||
typedef NSString* NSFontCollectionMatchingOptionKey;
|
||||
|
||||
APPKIT_EXPORT NSFontCollectionMatchingOptionKey const NSFontCollectionIncludeDisabledFontsOption;
|
||||
APPKIT_EXPORT NSFontCollectionMatchingOptionKey const NSFontCollectionRemoveDuplicatesOption;
|
||||
APPKIT_EXPORT NSFontCollectionMatchingOptionKey const NSFontCollectionDisallowAutoActivationOption;
|
||||
|
||||
typedef NSString* NSFontCollectionName;
|
||||
|
||||
@interface NSFontCollection : NSObject <NSCopying, NSMutableCopying, NSCoding>
|
||||
|
||||
// Initializers...
|
||||
+ (NSFontCollection *) fontCollectionWithDescriptors: (NSArray *)queryDescriptors;
|
||||
+ (NSFontCollection *) fontCollectionWithAllAvailableDescriptors;
|
||||
+ (NSFontCollection *) fontCollectionWithLocale: (NSLocale *)locale;
|
||||
|
||||
+ (BOOL) showFontCollection: (NSFontCollection *)collection
|
||||
withName: (NSFontCollectionName)name
|
||||
visibility: (NSFontCollectionVisibility)visibility
|
||||
error: (NSError **)error;
|
||||
|
||||
+ (BOOL) hideFontCollectionWithName: (NSFontCollectionName)name
|
||||
visibility: (NSFontCollectionVisibility)visibility
|
||||
error: (NSError **)error;
|
||||
|
||||
+ (BOOL) renameFontCollectionWithName: (NSFontCollectionName)name
|
||||
visibility: (NSFontCollectionVisibility)visibility
|
||||
toName: (NSFontCollectionName)name
|
||||
error: (NSError **)error;
|
||||
|
||||
+ (NSArray *) allFontCollectionNames;
|
||||
|
||||
+ (NSFontCollection *) fontCollectionWithName: (NSFontCollectionName)name;
|
||||
|
||||
+ (NSFontCollection *) fontCollectionWithName: (NSFontCollectionName)name
|
||||
visibility: (NSFontCollectionVisibility)visibility;
|
||||
|
||||
|
||||
// Descriptors
|
||||
- (NSArray *) queryDescriptors; // copy
|
||||
|
||||
- (NSArray *) exclusionDescriptors;
|
||||
|
||||
- (NSArray *) matchingDescriptors;
|
||||
- (NSArray *) matchingDescriptorsWithOptions: (NSDictionary *)options;
|
||||
|
||||
- (NSArray *) matchingDescriptorsForFamily: (NSString *)family;
|
||||
- (NSArray *) matchingDescriptorsForFamily: (NSString *)family options: (NSDictionary *)options;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface NSMutableFontCollection : NSFontCollection
|
||||
|
||||
+ (NSMutableFontCollection *) fontCollectionWithDescriptors: (NSArray *)queryDescriptors;
|
||||
+ (NSMutableFontCollection *) fontCollectionWithAllAvailableDescriptors;
|
||||
+ (NSMutableFontCollection *) fontCollectionWithLocale: (NSLocale *)locale;
|
||||
+ (NSMutableFontCollection *) fontCollectionWithName: (NSFontCollectionName)name;
|
||||
|
||||
+ (NSMutableFontCollection *) fontCollectionWithName: (NSFontCollectionName)name
|
||||
visibility: (NSFontCollectionVisibility)visibility;
|
||||
|
||||
- (NSArray *) queryDescriptors; // copy
|
||||
- (void) setQueryDescriptors: (NSArray *)queryDescriptors; // copy
|
||||
|
||||
- (NSArray *) exclusionDescriptors;
|
||||
- (void) setExclusionDescriptors: (NSArray *)exclusionDescriptors;
|
||||
|
||||
- (void)addQueryForDescriptors: (NSArray *)descriptors;
|
||||
|
||||
- (void)removeQueryForDescriptors: (NSArray *)descriptors;
|
||||
|
||||
@end
|
||||
|
||||
// NSFontCollectionDidChangeNotification
|
||||
APPKIT_EXPORT NSString * const NSFontCollectionDidChangeNotification;
|
||||
|
||||
// Notification user info dictionary keys
|
||||
typedef NSString * NSFontCollectionUserInfoKey;
|
||||
APPKIT_EXPORT NSFontCollectionUserInfoKey const NSFontCollectionActionKey;
|
||||
APPKIT_EXPORT NSFontCollectionUserInfoKey const NSFontCollectionNameKey;
|
||||
APPKIT_EXPORT NSFontCollectionUserInfoKey const NSFontCollectionOldNameKey;
|
||||
APPKIT_EXPORT NSFontCollectionUserInfoKey const NSFontCollectionVisibilityKey;
|
||||
|
||||
// Values for NSFontCollectionAction
|
||||
typedef NSString * NSFontCollectionActionTypeKey;
|
||||
APPKIT_EXPORT NSFontCollectionActionTypeKey const NSFontCollectionWasShown;
|
||||
APPKIT_EXPORT NSFontCollectionActionTypeKey const NSFontCollectionWasHidden;
|
||||
APPKIT_EXPORT NSFontCollectionActionTypeKey const NSFontCollectionWasRenamed;
|
||||
|
||||
// Standard named collections
|
||||
APPKIT_EXPORT NSFontCollectionName const NSFontCollectionAllFonts;
|
||||
APPKIT_EXPORT NSFontCollectionName const NSFontCollectionUser;
|
||||
APPKIT_EXPORT NSFontCollectionName const NSFontCollectionFavorites;
|
||||
APPKIT_EXPORT NSFontCollectionName const NSFontCollectionRecentlyUsed;
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -100,6 +100,7 @@ NSEPSImageRep.m \
|
|||
NSEvent.m \
|
||||
NSFileWrapperExtensions.m \
|
||||
NSFont.m \
|
||||
NSFontCollection.m \
|
||||
NSFontDescriptor.m \
|
||||
NSFontManager.m \
|
||||
NSFontPanel.m \
|
||||
|
@ -382,6 +383,7 @@ NSEvent.h \
|
|||
NSFileWrapper.h \
|
||||
NSFileWrapperExtensions.h \
|
||||
NSFont.h \
|
||||
NSFontCollection.h \
|
||||
NSFontDescriptor.h \
|
||||
NSFontManager.h \
|
||||
NSFontPanel.h \
|
||||
|
|
Loading…
Reference in a new issue