![]() |
Cinder
0.9.1
|
Functions | |
if (!mDisplay) mDisplay | |
if (mDisplay==cinder::Display::getMainDisplay())[mUiWindow makeKeyAndVisible] | |
return ((supportedOrientations &orientation)!=0) | |
switch (options.getType()) | |
mAppImpl mApp | emitKeyboardWillHide () |
for (NSUInteger i=0;i< n;i++) | |
if ([text length]==0) | |
else | if (mKeyboardClosesOnReturn &&[text isEqualToString:@"\n"]) |
if (utf8KeyboardChar) mAppImpl-> mKeyboardString=std::string(utf8KeyboardChar) | |
if (mAppImpl->mUpdateHasFired) mWindowRef-> emitDraw() | |
event | setWindow (mWindowRef) |
mWindowRef | emitMouseDown (event) |
mWindowRef | emitMouseDrag (event) |
mWindowRef | emitMouseUp (event) |
mWindowRef | emitTouchesBegan (event) |
mWindowRef | emitTouchesMoved (event) |
mWindowRef | emitTouchesEnded (event) |
mWindowRef | emitKeyDown (event) |
event | setHandled (false) |
mWindowRef | emitKeyUp (event) |
if | ( | ! | mDisplay | ) |
if | ( | mDisplay | = =cinder::Display::getMainDisplay() | ) |
return | ( | (supportedOrientations &orientation)! | = 0 | ) |
switch | ( | options. | getType() | ) |
mAppImpl mApp emitKeyboardWillHide | ( | ) |
for | ( | ) |
if | ( | ) |
else if | ( | mKeyboardClosesOnReturn && | [text isEqualToString:@"\n"] | ) |
if | ( | utf8KeyboardChar | ) | -> mKeyboardString=std::string(utf8KeyboardChar) |
if | ( | mAppImpl-> | mUpdateHasFired | ) | -> emitDraw() |
event setWindow | ( | mWindowRef | ) |
mWindowRef emitMouseDown | ( | event | ) |
mWindowRef emitMouseDrag | ( | event | ) |
mWindowRef emitMouseUp | ( | event | ) |
mWindowRef emitTouchesBegan | ( | event | ) |
mWindowRef emitTouchesMoved | ( | event | ) |
mWindowRef emitTouchesEnded | ( | event | ) |
mWindowRef emitKeyDown | ( | event | ) |
event setHandled | ( | false | ) |
mWindowRef emitKeyUp | ( | event | ) |
WindowImplCocoaTouch* initWithFormat |
self wantsFullScreenLayout = YES |
mAppImpl = appImpl |
mResizeHasFired = NO |
mKeyboardVisible = NO |
mUiWindow = NULL |
mRootViewController = format.getRootViewController() ? format.getRootViewController() : self |
mDisplay = format.getDisplay() |
cinder::Area screenBounds = mDisplay->getBounds() |
CGRect screenBoundsCgRect |
mSize x = 0 |
mSize y = 0 |
screenBoundsCgRect size width = screenBounds.getWidth() |
screenBoundsCgRect size height = screenBounds.getHeight() |
mCinderView = [[CinderViewCocoaTouch alloc] initWithFrame:screenBoundsCgRect app:mAppImpl->mApp renderer:format.getRenderer() sharedRenderer:sharedRenderer] |
mSize = cinder::ivec2( screenBoundsCgRect.size.width, screenBoundsCgRect.size.height ) |
mPos = cinder::ivec2( 0, 0 ) |
return self |
void finishLoad |
mUiWindow screen = screen |
mUiWindow rootViewController = mRootViewController |
void dealloc |
void loadView |
self view = mCinderView |
BOOL prefersStatusBarHidden |
BOOL shouldAutorotateToInterfaceOrientation |
InterfaceOrientation orientation = [mAppImpl convertInterfaceOrientation:toInterfaceOrientation] |
uint32_t supportedOrientations = mAppImpl->mApp->emitSupportedOrientations() |
void willAnimateRotationToInterfaceOrientation |
void didRotateFromInterfaceOrientation |
void showKeyboard |
mKeyboardClosesOnReturn = options.getCloseOnReturn() |
void hideKeyboard |
bool isKeyboardVisible |
void setKeyboardString |
void keyboardWillShow |
void keyboardWillHide |
UITextView* keyboardTextView |
bool canBecomeFirstResponder |
void insertText |
void r |
void return |
NSUInteger n = [text length] |
void deleteBackward |
BOOL hasText |
BOOL textView |
else |
const char* utf8KeyboardChar = [currentString UTF8String] |
bool isFullScreen |
void setFullScreen |
RendererRef getRenderer |
void* getNative |
UIViewController* getNativeViewController |
const std::vector<TouchEvent::Touch>& getActiveTouches |
void draw |
void resize |
void mouseDown |
void mouseDrag |
void mouseUp |
void touchesBegan |
void touchesMoved |
void touchesEnded |
WindowRef getWindowRef |
void keyDown |