Objective-C/fox2 Shared/UI/AAPLButton.h
/* |
Copyright (C) 2018 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Custom `SKNode` based button. |
*/ |
#import <SpriteKit/SpriteKit.h> |
@interface AAPLButton : SKNode { |
void (*_action)(id, SEL); |
} |
+ (AAPLButton*)buttonWithText:(NSString*)txt; |
+ (AAPLButton*)buttonWithSKNode:(SKNode*)node; |
@property (readonly) CGFloat width; |
- (void)setText:(NSString*)txt; |
- (void)setBackgroundColor:(SKColor*)col; |
- (void)setClickedTarget:(id)target action:(SEL)action; |
@end |
Copyright © 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-04-05