Files
FLEX/Classes/Editing/FLEXArgumentInputViewFactory.h
Tanner Bennett 1cd3a90809 Enable displaying ivar names for custom struct types
FLEXMetadataExtras.h
2022-04-27 11:53:57 -05:00

28 lines
1.0 KiB
Objective-C

//
// FLEXArgumentInputViewFactory.h
// FLEXInjected
//
// Created by Ryan Olson on 6/15/14.
//
//
#import <Foundation/Foundation.h>
#import "FLEXArgumentInputSwitchView.h"
@interface FLEXArgumentInputViewFactory : NSObject
/// Forwards to argumentInputViewForTypeEncoding:currentValue: with a nil currentValue.
+ (FLEXArgumentInputView *)argumentInputViewForTypeEncoding:(const char *)typeEncoding;
/// The main factory method for making argument input view subclasses that are the best fit for the type.
+ (FLEXArgumentInputView *)argumentInputViewForTypeEncoding:(const char *)typeEncoding currentValue:(id)currentValue;
/// A way to check if we should try editing a filed given its type encoding and value.
/// Useful when deciding whether to edit or explore a property, ivar, or NSUserDefaults value.
+ (BOOL)canEditFieldWithTypeEncoding:(const char *)typeEncoding currentValue:(id)currentValue;
/// Enable displaying ivar names for custom struct types
+ (void)registerFieldNames:(NSArray<NSString *> *)names forTypeEncoding:(NSString *)typeEncoding;
@end