-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ofxAppessory Beta (ofxAppSensor | ofxCommunication | ofxiUIKit)
- Loading branch information
1 parent
5e733f0
commit 5112364
Showing
93 changed files
with
7,940 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// 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 |
Oops, something went wrong.