// // AFFeatherController.h // AviarySDK // // Created by Cameron Spickert on 9/16/11. // Copyright 2011 Aviary INC. All rights reserved. // @class AFFeatherController; #pragma mark - #pragma mark AFInterfaceElement protocol @protocol AFInterfaceElement @required @property (nonatomic, retain) UIColor *tintColor; @property (nonatomic, retain) UIImage *backgroundImage; @end #pragma mark - #pragma mark AFFeatherPluginButton protocol @protocol AFFeatherPluginButton @end #pragma mark - #pragma mark AFFeatherPlugin protocol @protocol AFFeatherPlugin @required @property (nonatomic, readonly) NSString *pluginId; @property (nonatomic, readonly) NSString *localizedName; @property (nonatomic, readonly) UIImage *icon; @property (nonatomic, readonly) UIButton *button; @end @protocol AFFeatherDelegate @optional #pragma mark - #pragma mark Delegate methods - (void)feather:(AFFeatherController *)featherController finishedWithImage:(UIImage *)image; - (void)featherCanceled:(AFFeatherController *)featherController; - (BOOL)featherShouldConfirmCancel:(AFFeatherController *)featherController; - (UIButton *)feather:(AFFeatherController *)featherController buttonForPlugin:(id)plugin; - (BOOL)featherShouldConfirmCancel:(AFFeatherController *)featherController; @end @interface AFFeatherController : UIViewController @property (nonatomic, assign) id delegate; @property (nonatomic, retain) id topBar, bottomBar, paramsBar; - (id)initWithImage:(UIImage *)image; - (id)initWithImage:(UIImage *)image andTools:(NSArray *)tools; - (id)initWithImage:(UIImage *)image andTools:(NSArray *)tools andUserInterfaceIdiom:(UIUserInterfaceIdiom)idiom; @end