//
// FWEffectBarItem.h
// FWMeituApp
//
// Created by ForrestWoo on 15-9-23.
// Copyright (c) 2015年 ForrestWoo co,.ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FWEffectBarItem : UIControl
/**
* itemHeight is an optional property. When set it is used instead of tabBar's height.
*/
@property CGFloat itemHeight;
#pragma mark - Title configuration
/**
* The title displayed by the tab bar item.
*/
@property (nonatomic, copy) NSString *title;
/**
* The offset for the rectangle around the tab bar item's title.
*/
@property (nonatomic) UIOffset titlePositionAdjustment;
/**
* For title's text attributes see
* https://developer.apple.com/library/ios/documentation/uikit/reference/NSString_UIKit_Additions/Reference/Reference.html
*/
/**
* The title attributes dictionary used for tab bar item's unselected state.
*/
@property (copy) NSDictionary *unselectedTitleAttributes;
/**
* The title attributes dictionary used for tab bar item's selected state.
*/
@property (copy) NSDictionary *selectedTitleAttributes;
#pragma mark - Image configuration
/**
* The offset for the rectangle around the tab bar item's image.
*/
@property (nonatomic) UIOffset imagePositionAdjustment;
/**
* The image used for tab bar item's selected state.
*/
- (UIImage *)finishedSelectedImage;
/**
* The image used for tab bar item's unselected state.
*/
- (UIImage *)finishedUnselectedImage;
/**
* Sets the tab bar item's selected and unselected images.
*/
- (void)setFinishedSelectedImage:(UIImage *)selectedImage withFinishedUnselectedImage:(UIImage *)unselectedImage;
#pragma mark - Background configuration
/**
* The background image used for tab bar item's selected state.
*/
- (UIImage *)backgroundSelectedImage;
/**
* The background image used for tab bar item's unselected state.
*/
- (UIImage *)backgroundUnselectedImage;
/**
* Sets the tab bar item's selected and unselected background images.
*/
- (void)setBackgroundSelectedImage:(UIImage *)selectedImage withUnselectedImage:(UIImage *)unselectedImage;
@end