src/video/uikit/SDL_uikitviewcontroller.h
author Kees Bakker <kees@ijzerbout.nl>
Wed, 28 Sep 2011 21:42:02 +0200
changeset 6011 83a21d3bd5c1
parent 6005 f5327bae25cb
child 6138 4c64952a58fb
permissions -rw-r--r--
Make SDL_uikitviewcontroller.window a real Objective-C property and synthesize
kees@5640
     1
/*
kees@5640
     2
 Simple DirectMedia Layer
kees@5640
     3
 Copyright (C) 1997-2011 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
kees@5640
    26
@interface SDL_uikitviewcontroller : UIViewController {
kees@5640
    27
@private
kees@5640
    28
    SDL_Window *window;
kees@5640
    29
}
kees@6011
    30
kees@6011
    31
@property (readwrite) SDL_Window *window;
kees@6011
    32
kees@5640
    33
- (id)initWithSDLWindow:(SDL_Window *)_window;
kees@5640
    34
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
kees@5640
    35
- (void)loadView;
kees@5640
    36
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
kees@6011
    37
kees@5640
    38
@end