src/video/uikit/SDL_uikitviewcontroller.h
author Alex Szpakowski <slime73@gmail.com>
Wed, 23 Jul 2014 03:05:31 -0300
branchiOS-improvements
changeset 9501 574db299498f
parent 9492 cad5a9995bde
child 9532 318042c16b76
permissions -rw-r--r--
More cleanup of the iOS Objective-C code.
kees@5640
     1
/*
kees@5640
     2
 Simple DirectMedia Layer
slouken@8149
     3
 Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
kees@6001
     4
kees@5640
     5
 This software is provided 'as-is', without any express or implied
kees@5640
     6
 warranty.  In no event will the authors be held liable for any damages
kees@5640
     7
 arising from the use of this software.
kees@6001
     8
kees@5640
     9
 Permission is granted to anyone to use this software for any purpose,
kees@5640
    10
 including commercial applications, and to alter it and redistribute it
kees@5640
    11
 freely, subject to the following restrictions:
kees@6001
    12
kees@5640
    13
 1. The origin of this software must not be misrepresented; you must not
kees@5640
    14
 claim that you wrote the original software. If you use this software
kees@5640
    15
 in a product, an acknowledgment in the product documentation would be
kees@5640
    16
 appreciated but is not required.
kees@5640
    17
 2. Altered source versions must be plainly marked as such, and must not be
kees@5640
    18
 misrepresented as being the original software.
kees@5640
    19
 3. This notice may not be removed or altered from any source distribution.
kees@5640
    20
 */
kees@5640
    21
kees@5640
    22
#import <UIKit/UIKit.h>
kees@5640
    23
kees@6005
    24
#include "../SDL_sysvideo.h"
kees@5640
    25
slime73@9501
    26
@interface SDL_uikitviewcontroller : UIViewController
kees@6011
    27
slime73@9501
    28
@property (nonatomic, assign) SDL_Window *window;
kees@6011
    29
kees@5640
    30
- (id)initWithSDLWindow:(SDL_Window *)_window;
slouken@6440
    31
- (void)loadView;
slouken@6451
    32
- (void)viewDidLayoutSubviews;
slouken@6451
    33
- (NSUInteger)supportedInterfaceOrientations;
kees@5640
    34
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
slouken@7862
    35
- (BOOL)prefersStatusBarHidden;
slime73@9492
    36
- (UIStatusBarStyle)preferredStatusBarStyle;
kees@6011
    37
kees@5640
    38
@end