Classes | Enumerations | Functions

CC3IOSExtensions.h File Reference

#import <UIKit/UIGestureRecognizer.h>
#import <UIKit/UIColor.h>
#import "ccTypes.h"

Classes

class  NSObject(CC3)
 Extension category to support cocos3d functionality. More...
class  UIColor(CC3)
 Extension category to support cocos3d functionality. More...
class  UIGestureRecognizer(CC3)
 Extension category to support cocos3d functionality. More...
class  UIPanGestureRecognizer(CC3)
 Extension category to support cocos3d functionality. More...

Enumerations

enum  UIInterfaceOrientationMask

Functions

static UIDeviceOrientation CC3UIDeviceOrientationFromUIInterfaceOrientation (UIInterfaceOrientation uiOrientation)
static UIInterfaceOrientationMask CC3UIInterfaceOrientationMaskFromUIInterfaceOrientation (UIInterfaceOrientation uiOrientation)
static BOOL CC3UIInterfaceOrientationMaskIncludesUIOrientation (NSUInteger uiOrientationMask, UIInterfaceOrientation uiOrientation)
NSString * NSStringFromUIDeviceOrientation (UIDeviceOrientation deviceOrientation)
NSString * NSStringFromUIInterfaceOrientation (UIInterfaceOrientation uiOrientation)

Detailed Description


Enumeration Type Documentation

For consistency, add compilation support for UIInterfaceOrientationMask for SDK's below iOS 6.0.


Function Documentation

static UIDeviceOrientation CC3UIDeviceOrientationFromUIInterfaceOrientation ( UIInterfaceOrientation  uiOrientation ) [inline, static]

Returns the UIDeviceOrientation corresponding to the specified UIInterfaceOrientation.

For landscape mode, device orientation is the opposite to the UI orientation (Left <=> Right), otherwise the device orientation is the same as the UI orientation.

static UIInterfaceOrientationMask CC3UIInterfaceOrientationMaskFromUIInterfaceOrientation ( UIInterfaceOrientation  uiOrientation ) [inline, static]

Returns the UIInterfaceOrientationMask corresponding to the specified UIInterfaceOrientation.

static BOOL CC3UIInterfaceOrientationMaskIncludesUIOrientation ( NSUInteger  uiOrientationMask,
UIInterfaceOrientation  uiOrientation 
) [inline, static]

Returns whether the specified UIInterfaceOrientationMask includes the specified UIInterfaceOrientation.

NSString* NSStringFromUIDeviceOrientation ( UIDeviceOrientation  deviceOrientation )

Returns a string description of the specified UIDeviceOrientation.

NSString* NSStringFromUIInterfaceOrientation ( UIInterfaceOrientation  uiOrientation )

Returns a string description of the specified UIInterfaceOrientation.