Swiftgram/third-party/RMIntro/platform/ios/RMIntroViewController.h
2018-01-09 13:18:08 +04:00

51 lines
1.0 KiB
Objective-C

//
// RMIntroViewController.h
// IntroOpenGL
//
// Created by Ilya Rimchikov on 19/01/14.
//
//
#import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
//#import "RMRootViewController.h"
typedef enum {
Inch35 = 0,
Inch4 = 1,
Inch47 = 2,
Inch55 = 3,
iPad = 4,
iPadPro = 5
} DeviceScreen;
@interface RMIntroViewController : UIViewController<UIScrollViewDelegate, GLKViewDelegate>
{
EAGLContext *context;
GLKView *_glkView;
NSArray *_headlines;
NSArray *_descriptions;
NSMutableArray *_pageViews;
NSInteger _currentPage;
UIScrollView *_pageScrollView;
UIPageControl *_pageControl;
NSTimer *_updateAndRenderTimer;
BOOL _isOpenGLLoaded;
}
- (instancetype)initWithBackroundColor:(UIColor *)backgroundColor primaryColor:(UIColor *)primaryColor accentColor:(UIColor *)accentColor regularDotColor:(UIColor *)regularDotColor highlightedDotColor:(UIColor *)highlightedDotColor;
@property (nonatomic, copy) void (^startMessaging)();
- (void)startTimer;
- (void)stopTimer;
@end