//
//  WSFSlideTitlesView.h
//  WSFSlideTitlesView
//
//  Created by WangShengFeng on 3/7/16.
//  Copyright 漏 2016 WangShengFeng. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WSFSlideTitlesView;
@class WSFSlideTitlesViewSetting;

@protocol WSFSlideTitlesViewDelegate <NSObject>

@optional

// 閫氱煡澶栭儴閫変腑鎸夐挳鏇存崲
- (void)slideTitlesView:(WSFSlideTitlesView *)titlesView didSelectButton:(UIButton *)button atIndex:(NSUInteger)index;

@end

@interface WSFSlideTitlesView : UIView

@property (nonatomic, weak) id<WSFSlideTitlesViewDelegate> delegate;

// 涓ょ鍒涘缓鏂规硶
+ (instancetype)slideTitlesViewWithSetting:(WSFSlideTitlesViewSetting *)setting;
- (instancetype)initWithSetting:(WSFSlideTitlesViewSetting *)setting;

// 澶栭儴淇敼閫変腑鎸夐挳
- (void)selectButtonAtIndex:(NSUInteger)index;

@end

@interface WSFSlideTitlesViewSetting : NSObject

#pragma mark 鏍囬璁剧疆
// 鏅€氱姸鎬佹寜閽爣棰?@property (nonatomic, strong) NSArray *titlesArr;
// 閫変腑鐘舵€佹寜閽爣棰橈紝榛樿涓庢櫘閫氱姸鎬佷竴鏍?@property (nonatomic, strong) NSArray *selectedTitlesArr;
// 鏁翠釜 view 鐨勫昂瀵?@property (nonatomic, assign) CGRect frame;
// 鏁翠釜 view 鐨勮儗鏅鑹?@property (nonatomic, strong) UIColor *backgroundColor;
// 鏅€氱姸鎬佹爣棰橀鑹诧紝榛樿涓洪粦鑹?@property (nonatomic, strong) UIColor *textColor;
// 閫変腑鐘舵€佹爣棰橀鑹诧紝榛樿涓烘鑹?@property (nonatomic, strong) UIColor *selectedTextColor;
// 鏅€氱姸鎬佸瓧浣撳ぇ灏忥紝榛樿涓虹郴缁熷ぇ灏?@property (nonatomic, assign) CGFloat textFontSize;
// 閫変腑鐘舵€佸瓧浣撳ぇ灏忥紝榛樿涓庢櫘閫氱姸鎬佷竴鏍?@property (nonatomic, assign) CGFloat selectedTextFontSize;

#pragma mark 妯嚎璁剧疆
// 闅愯棌鐘舵€侊紝榛樿涓轰笉闅愯棌
@property (nonatomic, assign) BOOL lineHidden;
// 妯嚎瀹藉害锛岄粯璁や负涓庢爣棰樻枃瀛楀悓瀹?@property (nonatomic, assign) CGFloat lineWidth;
// 妯嚎楂樺害锛岄粯璁や负 1
@property (nonatomic, assign) CGFloat lineHeight;
// 妯嚎棰滆壊锛岄粯璁や负涓庨€変腑鐘舵€佹爣棰橀鑹蹭竴鏍?@property (nonatomic, strong) UIColor *lineColor;
// 妯嚎涓庡簳閮ㄨ窛绂伙紝榛樿涓?1
@property (nonatomic, assign) CGFloat lineBottomSpace;
// 妯嚎鍔ㄧ敾鏃堕棿锛岄粯璁や负 0.5 濡?@property (nonatomic, assign) NSTimeInterval animateDuration;

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