2012-09-29 17:23:40 -07:00
|
|
|
/*
|
|
|
|
Simple DirectMedia Layer
|
2020-01-16 20:49:25 -08:00
|
|
|
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
|
2012-09-29 17:23:40 -07:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
*/
|
2013-11-24 23:56:17 -05:00
|
|
|
#include "../../SDL_internal.h"
|
2012-09-29 17:23:40 -07:00
|
|
|
|
2017-08-28 00:22:23 -07:00
|
|
|
#ifndef SDL_uikitmodes_h_
|
|
|
|
#define SDL_uikitmodes_h_
|
2012-09-29 17:23:40 -07:00
|
|
|
|
|
|
|
#include "SDL_uikitvideo.h"
|
|
|
|
|
2014-08-06 03:24:16 -03:00
|
|
|
@interface SDL_DisplayData : NSObject
|
|
|
|
|
2019-12-16 10:26:36 -08:00
|
|
|
- (instancetype)initWithScreen:(UIScreen*)screen;
|
2019-12-08 11:36:40 -08:00
|
|
|
|
2014-08-06 03:24:16 -03:00
|
|
|
@property (nonatomic, strong) UIScreen *uiscreen;
|
2019-12-08 11:36:40 -08:00
|
|
|
@property (nonatomic) float screenDPI;
|
2014-08-06 03:24:16 -03:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface SDL_DisplayModeData : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, strong) UIScreenMode *uiscreenmode;
|
|
|
|
|
|
|
|
@end
|
2012-09-29 17:23:40 -07:00
|
|
|
|
2012-09-29 18:52:00 -07:00
|
|
|
extern SDL_bool UIKit_IsDisplayLandscape(UIScreen *uiscreen);
|
|
|
|
|
2012-09-29 17:23:40 -07:00
|
|
|
extern int UIKit_InitModes(_THIS);
|
|
|
|
extern void UIKit_GetDisplayModes(_THIS, SDL_VideoDisplay * display);
|
2019-12-08 11:36:40 -08:00
|
|
|
extern int UIKit_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi, float * vdpi);
|
2012-09-29 17:23:40 -07:00
|
|
|
extern int UIKit_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
|
|
|
|
extern void UIKit_QuitModes(_THIS);
|
2016-01-04 23:52:40 -05:00
|
|
|
extern int UIKit_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect);
|
2012-09-29 17:23:40 -07:00
|
|
|
|
2017-08-28 00:22:23 -07:00
|
|
|
#endif /* SDL_uikitmodes_h_ */
|
2012-09-29 17:23:40 -07:00
|
|
|
|
|
|
|
/* vi: set ts=4 sw=4 expandtab: */
|