Files
PojavLauncher_iOS/Natives/customcontrols/ControlButton.h
T
Duy Tran Khanh 292fb8166f Custom controls: safe area is now customizable
Other changes:
- Cleanup unused functions
- Internal changes to access ViewController globally
- Moved ControlLayout to a separate file
2022-08-03 12:23:27 +07:00

27 lines
588 B
Objective-C

#import <UIKit/UIKit.h>
/**
* Custom controls have similar format as Android.
*
* Android - iOS:
* ControlButton - same
* ControlData - NSDictionary
*/
@interface ControlButton : UIButton {
}
@property BOOL canBeHidden;
@property(nonatomic, strong) NSMutableDictionary* properties;
+ (id)buttonWithProperties:(NSMutableDictionary *)propArray;
- (BOOL)canSnap:(ControlButton *)button;
- (NSString *)generateDynamicX:(CGFloat)x;
- (NSString *)generateDynamicY:(CGFloat)y;
- (void)snapAndAlignX:(CGFloat)x Y:(CGFloat)y;
- (void)preProcessProperties;
- (void)update;
@end