//
//  WMMenuItem.h
//  WMPageController
//
//  Created by Mark on 15/4/26.
//  Copyright (c) 2015骞?yq. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WMMenuItem;
@protocol WMMenuItemDelegate <NSObject>
@optional
- (void)didPressedMenuItem:(WMMenuItem *)menuItem;
@end

@interface WMMenuItem : UILabel
/**
 *  璁剧疆rate,骞跺埛鏂版爣棰樼姸鎬? */
@property (nonatomic, assign) CGFloat rate;
/**
 *  normal鐘舵€佺殑瀛椾綋澶у皬锛岄粯璁ゅぇ灏忎负15
 */
@property (nonatomic, assign) CGFloat normalSize;
/**
 *  selected鐘舵€佺殑瀛椾綋澶у皬锛岄粯璁ゅぇ灏忎负18
 */
@property (nonatomic, assign) CGFloat selectedSize;
/**
 *  normal鐘舵€佺殑瀛椾綋棰滆壊锛岄粯璁や负榛戣壊 (鍙姩鐢?
 */
@property (nonatomic, strong) UIColor *normalColor;
/**
 *  selected鐘舵€佺殑瀛椾綋棰滆壊锛岄粯璁や负绾㈣壊 (鍙姩鐢?
 */
@property (nonatomic, strong) UIColor *selectedColor;

@property (nonatomic, assign, getter=isSelected) BOOL selected;
@property (nonatomic, weak) id<WMMenuItemDelegate> delegate;
- (void)selectedItemWithoutAnimation;
- (void)deselectedItemWithoutAnimation;
@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com