JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SettingsButtonAreaViewController.h
Go to the documentation of this file.
1
12
13#import <UIKit/UIKit.h>
14
15@class CADisplayLink;
16@class EAGLView;
17@class Texture2D;
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface SettingsButtonAreaViewController : UIViewController
25
31@property(nonatomic, strong, nullable) UISlider *slider;
32
38@property(nonatomic, strong, nullable) EAGLView *glView;
39
45@property(nonatomic, strong, nullable) Texture2D *texButtons;
46
52@property(nonatomic, strong, nullable) CADisplayLink *displayLink;
53
60- (instancetype)init;
61
68- (void)loop:(nullable CADisplayLink *)displayLink;
69
75- (void)loadView;
76
82- (void)buttonWidthChanged:(nullable UISlider *)sender;
83
89- (void)appSuspended:(nullable NSNotification *)notification;
90
96- (void)appResumed:(nullable NSNotification *)notification;
97
103
108- (void)viewDidUnload;
109
115- (void)viewWillAppear:(BOOL)animated;
116
122- (void)viewDidAppear:(BOOL)animated;
123
129- (void)viewWillDisappear:(BOOL)animated;
130
136- (void)viewDidDisappear:(BOOL)animated;
137
144- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
145
151- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
152
158- (BOOL)shouldAutorotate;
159
160@end
161
162NS_ASSUME_NONNULL_END
163
164// code: language=Objective-C
165// kate: hl Objective-C;
166// vim: set ft=objc :
The OpenGL ES 1.1 rendering view backing the game.
Definition EAGLView.h:19
A view controller previewing the play-button area with an adjustable button width.
Definition SettingsButtonAreaViewController.h:25
BOOL shouldAutorotate()
Whether the controller supports automatic rotation.
Definition SettingsButtonAreaViewController.m:315
instancetype init()
Sets the navigation title, opts the view out of opaque-bar extension, and observes the app suspend an...
Definition SettingsButtonAreaViewController.m:73
EAGLView * glView
The GL view the button grid is rendered into.
Definition SettingsButtonAreaViewController.h:38
CADisplayLink * displayLink
The display link driving the render loop.
Definition SettingsButtonAreaViewController.h:52
Texture2D * texButtons
The sprite atlas holding the button images.
Definition SettingsButtonAreaViewController.h:45
void viewDidUnload()
Releases the slider, GL view, and atlas when the view is unloaded.
Definition SettingsButtonAreaViewController.m:188
void didReceiveMemoryWarning()
Forwards the memory warning to the superclass.
Definition SettingsButtonAreaViewController.m:183
UIInterfaceOrientationMask supportedInterfaceOrientations()
The supported orientations: portrait and portrait-upside-down.
Definition SettingsButtonAreaViewController.m:310
void loadView()
Builds the slider, the GL view, the button atlas, the preview border, and the caption label,...
Definition SettingsButtonAreaViewController.m:105
UISlider * slider
The slider controlling the previewed button width.
Definition SettingsButtonAreaViewController.h:31
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40