//
//  ComboBox.h
//  EugineAPISample
//
//  Created by aaab on 2023/01/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class ComboBox;
@protocol IComboBox <NSObject>

- (void)selectComboBox:(ComboBox*)box selectKey:(NSString*)key;

@end

@interface ComboBox : UIView


- (void)setPlaceHolder:(NSString*)placeHolder;
- (void)setComboDelegate:(id <IComboBox>)delegate;
- (void)setKeys:(NSArray*)keys title:(NSArray*)titles;
- (void)setSelectIndex:(NSInteger)index;
- (NSString*)getSelectkey;
- (NSString*)getSelectName;
- (NSInteger)getSelectIndex;
- (void)onComboInButton:(UIButton*)btn;
@end

NS_ASSUME_NONNULL_END
