Files
PojavLauncher_iOS/Natives/CustomControlsViewController.h
T

30 lines
939 B
Objective-C

#import <UIKit/UIKit.h>
#import "customcontrols/ControlButton.h"
@interface ControlHandleView : UIView
@property(nonatomic, weak) ControlButton* target;
@end
@interface CustomControlsViewController : UIViewController
@property(nonatomic) UIGestureRecognizer* currentGesture;
@property(nonatomic) NSMutableDictionary* cc_dictionary;
@property(nonatomic) UIView* ctrlView;
@property(nonatomic) ControlHandleView* resizeView;
- (void)initKeyCodeMap;
@end
@interface CustomControlsViewController(UndoManager)
- (void)doAddButton:(ControlButton *)button atIndex:(NSNumber *)index;
- (void)doRemoveButton:(ControlButton *)button;
- (void)doMoveOrResizeButton:(ControlButton *)button from:(CGRect)from to:(CGRect)to;
- (void)doUpdateButton:(ControlButton *)button from:(NSMutableDictionary *)from to:(NSMutableDictionary *)to;
@end
@interface CCMenuViewController : UIViewController
@property(nonatomic) ControlButton* targetButton;
@end