diff options
Diffstat (limited to 'src/SFML/Window/iOS/SFAppDelegate.hpp')
-rw-r--r-- | src/SFML/Window/iOS/SFAppDelegate.hpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/SFML/Window/iOS/SFAppDelegate.hpp b/src/SFML/Window/iOS/SFAppDelegate.hpp index 77f1a63..cd20bfc 100644 --- a/src/SFML/Window/iOS/SFAppDelegate.hpp +++ b/src/SFML/Window/iOS/SFAppDelegate.hpp @@ -1,7 +1,7 @@ //////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library -// Copyright (C) 2007-2013 Laurent Gomila (laurent.gom@gmail.com) +// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) // // 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. @@ -101,10 +101,33 @@ - (void)notifyCharacter:(sf::Uint32)character; //////////////////////////////////////////////////////////// +/// \brief Tells if the dimensions of the current window must be flipped when switching to a given orientation +/// +/// \param orientation the device has changed to +/// +//////////////////////////////////////////////////////////// +- (bool)needsToFlipFrameForOrientation:(UIDeviceOrientation)orientation; + +//////////////////////////////////////////////////////////// +/// \brief Tells if app and view support a requested device orientation or not +/// +/// \param orientation the device has changed to +/// +//////////////////////////////////////////////////////////// +- (bool)supportsOrientation:(UIDeviceOrientation)orientation; + +//////////////////////////////////////////////////////////// +/// \brief Initializes the factor which is required to convert from points to pixels and back +/// +//////////////////////////////////////////////////////////// +- (void)initBackingScale; + +//////////////////////////////////////////////////////////// // Member data //////////////////////////////////////////////////////////// @property (nonatomic) sf::priv::WindowImplUIKit* sfWindow; ///< Main window of the application @property (readonly, nonatomic) CMMotionManager* motionManager; ///< Instance of the motion manager +@property (nonatomic) CGFloat backingScaleFactor; @end |