//
//  CollectionView.h
//  LifeLog
//
//  Created by nvtu on 8/3/17.
//  Copyright © 2017 PhongNV. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CollectionView : UIView <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout> {
    NSInteger   _number;
    int         _selectedIndex;

    BOOL        _isEnableSelection;
    BOOL        _isEnableIcon;
    float       _spacing;
    float       _cornerRadius;
    
    UIColor *   _highlightColor;
    UIColor *   _normalColor;
    UIColor *   _textColor;
    
    NSArray *   _arrayTitle;
}

@property (copy) void (^changeCurrentIndex)(int index);

@property (weak, nonatomic) IBOutlet UIView *view;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;

-(void) disableSelection;
-(void) setButtonNumber: (NSInteger) number;
-(void) setSpacing: (float) spacing;
-(void) setCornerRadius: (float) radius;
-(void) setSelectedIndex: (int) index;
-(void) setNormalColor: (UIColor *) normal highlightColor: (UIColor *) highlight textColor: (UIColor *) text;
-(void) setArrayTitle: (NSArray *) title;
-(void) enableImageIcon;
-(int)  getCurrentIndex;

@end
