-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHJThreeStateButton.h
More file actions
38 lines (30 loc) · 815 Bytes
/
HJThreeStateButton.h
File metadata and controls
38 lines (30 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// HJThreeStateButton.h
// zzz-sliderManualTest
//
// Created by hasnainjafri on 6/27/14.
// Copyright (c) 2014 hasnainjafri. All rights reserved.
//
#import <UIKit/UIKit.h>
@class HJThreeStateButton;
@protocol HJThreeStateButtonDelegate
@optional
-(void)stateChangeForSwitch:(HJThreeStateButton*)currentSwitch;
@end
@interface HJThreeStateButton : UIControl
{
UIButton *ONBtn;
UIButton *OFFBtn;
UIButton *NeutralBtn;
UIButton *thumbBtn;
UIImageView *bgImgView;
}
@property(nonatomic,assign) BOOL isOn;
@property(nonatomic,assign) BOOL isOFF;
@property(nonatomic,assign) BOOL isNeutral;
@property (nonatomic,assign)id<HJThreeStateButtonDelegate>delegate;
-(void) setOn:(BOOL) value;
-(void) setOff:(BOOL) value;
-(void) setNeutral;
-(void) set_Enabled:(BOOL)enabled;
@end