//
//  GSGlyphFilterSearchField.h
//  GlyphsKit
//
//  Created by Georg Seifert on 02.02.20.
//  Copyright © 2020 Georg Seifert. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN

@class GSFont;

typedef NS_ENUM(uint16_t, GSSearchTypes) {
	SearchAll = 1,
	SearchName,
	SearchUnicode,
	SearchCategory,
	SearchSubcategory,
	SearchScript,
	SearchCase,
	SearchProduction,
	SearchNote,
	SearchDirection,
	SearchMatchCase = 2001,
	SearchRegex = 2002
};

@interface GSGlyphFilterSearchField : NSSearchField <NSMenuDelegate, NSSearchFieldDelegate>

@property (nonatomic, strong) NSString *defaultsPrefix;

- (nullable NSArray *)filterPredicates:(GSFont *)font;

@end

NS_ASSUME_NONNULL_END
