linphone-iphone/Classes/Utils/DCRoundSwitch/DCRoundSwitch.h
Yann Diorcet ee358816b7 Change InAppSettings place
All settings with Linphone Colors
2012-07-27 11:20:09 +02:00

33 lines
992 B
Objective-C
Executable file

//
// DCRoundSwitch.h
//
// Created by Patrick Richards on 28/06/11.
// MIT License.
//
// http://twitter.com/patr
// http://domesticcat.com.au/projects
// http://github.com/domesticcatsoftware/DCRoundSwitch
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@class DCRoundSwitchToggleLayer;
@class DCRoundSwitchOutlineLayer;
@class DCRoundSwitchKnobLayer;
@interface DCRoundSwitch : UIControl
@property (nonatomic, retain) UIColor *onTintColor; // default: blue (matches normal UISwitch)
@property (nonatomic, getter=isOn) BOOL on; // default: NO
@property (nonatomic, copy) NSString *onText; // default: 'ON' - automatically localized
@property (nonatomic, copy) NSString *offText; // default: 'OFF' - automatically localized
+ (Class)knobLayerClass;
+ (Class)outlineLayerClass;
+ (Class)toggleLayerClass;
- (void)setOn:(BOOL)newOn animated:(BOOL)animated;
- (void)setOn:(BOOL)newOn animated:(BOOL)animated ignoreControlEvents:(BOOL)ignoreControlEvents;
@end