//
//  YPStyleBar.h
//  YPReusableController
//
//  Created by MichaelPPP on 15/12/29.
//  Copyright (c) 2015骞?tyiti. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YPReusableControllerConst.h"

@protocol YPStyleBarDelegate;

@interface YPStyleBar : UIView

@property (nonatomic, assign) id<YPStyleBarDelegate> myDelegate;

/** 鏍囬鏁扮粍 */
@property (nonatomic, strong) NSMutableArray *items;

/** 鏂囧瓧鍐呰竟璺?*/
@property (nonatomic, assign) CGFloat textInset;

/** 鏂囧瓧瀛椾綋 */
@property (nonatomic, strong) UIFont *textFont;

/** 鏂囧瓧鏅€氱姸鎬佷笅鐨勯鑹?*/
@property (nonatomic, strong) UIColor *textColor_normal;

/** 鏂囧瓧閫変腑鐘舵€佷笅鐨勯鑹?*/
@property (nonatomic, strong) UIColor *textColor_selected;

/** 淇濆瓨鎵€鏈夐€夐」鎸夐挳鐨勬暟缁?*/
@property (nonatomic, strong) NSMutableArray *allItemBtnArr;

/** 鎷栧姩姣斾緥 */
@property (nonatomic, assign) CGFloat progress;

/** 褰撳墠绱㈠紩 */
@property (nonatomic, assign) NSInteger currentItemIndex;

/** bar鐨勬粦鍔ㄥ唴瀹硅儗鏅鑹?*/
@property (nonatomic, strong) UIColor *scrollViewBgColor;

/** 鍙充晶鍥剧墖(鏅€? */
@property (nonatomic, strong) UIImage *rightImage_normal;

/** 鍙充晶鍥剧墖(楂樹寒) */
@property (nonatomic, strong) UIImage *rightImage_highlight;

/** 宸︿晶鍥剧墖(鏅€? */
@property (nonatomic, strong) UIImage *leftImage_normal;

/** 鏄惁寮€鍚槾褰辨晥鏋?榛樿寮€鍚?*/
@property (nonatomic, assign) BOOL isOpenShadowEffect;

@end

@protocol YPStyleBarDelegate <NSObject>

@optional
/** 褰撻€夐」琚€夋嫨鏃跺€欑殑鍥炶皟浠g悊鏂规硶 */
- (void)itemDidSelectedWithIndex:(YPStyleBar *)navTabBar index:(NSUInteger)index;

@end

UIKIT_EXTERN NSString *const YPStyleBarLeftBtnDidTouchNotification;
UIKIT_EXTERN NSString *const YPStyleBarRightBtnDidTouchNotification;
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com