Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher_iOS
Path: blob/main/Natives/CustomControlsViewController.h
589 views
1
#import <UIKit/UIKit.h>
2
#import "customcontrols/ControlButton.h"
3
#import "customcontrols/ControlLayout.h"
4
5
typedef NSString* (^GetDefaultCtrlBlock)();
6
typedef void (^SetDefaultCtrlBlock)(NSString *);
7
8
@interface ControlHandleView : UIView
9
@property(nonatomic, weak) ControlButton* target;
10
@end
11
12
@interface CustomControlsViewController : UIViewController
13
14
@property(nonatomic) GetDefaultCtrlBlock getDefaultCtrl;
15
@property(nonatomic) SetDefaultCtrlBlock setDefaultCtrl;
16
17
@property(nonatomic) UIGestureRecognizer* currentGesture;
18
19
@property(nonatomic) ControlLayout* ctrlView;
20
@property(nonatomic) ControlHandleView* resizeView;
21
22
@end
23
24
@interface CustomControlsViewController(UndoManager)
25
- (void)doAddButton:(ControlButton *)button atIndex:(NSNumber *)index;
26
- (void)doRemoveButton:(ControlButton *)button;
27
- (void)doMoveOrResizeButton:(ControlButton *)button from:(CGRect)from to:(CGRect)to;
28
- (void)doUpdateButton:(ControlButton *)button from:(NSMutableDictionary *)from to:(NSMutableDictionary *)to;
29
@end
30
31
@interface CCMenuViewController : UIViewController
32
@property(nonatomic) ControlButton* targetButton;
33
@end
34
35