@@ -60,10 +60,6 @@ APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6060Copyright (C) 2008 Apple Inc. All Rights Reserved.
6161
6262*/
63-
64- #include " platform/CCPlatformConfig.h"
65- #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS
66-
6763#import < UIKit/UIKit.h>
6864#import < OpenGLES/EAGL.h>
6965#import < OpenGLES/EAGLDrawable.h>
@@ -80,42 +76,18 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved.
8076 * The view content is basically an EAGL surface you render your OpenGL scene into.
8177 * Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
8278 */
83- @interface CCEAGLView : UIView <UIKeyInput, UITextInput, UITextInputTraits>
79+ @interface CCEAGLView : UIView
8480{
8581 id <CCESRenderer> renderer_;
86- EAGLContext *context_; // weak ref
8782
88- NSString *pixelformat_;
89- GLuint depthFormat_;
9083 BOOL preserveBackbuffer_;
91-
92- CGSize size_;
9384 CGRect safeArea_;
9485 BOOL discardFramebufferSupported_;
9586
9687 // fsaa addition
97- BOOL multisampling_;
9888 unsigned int requestedSamples_;
99- BOOL isUseUITextField;
100- @private
101- NSString * markedText_;
102- CGRect caretRect_;
103- CGRect originalRect_;
104- NSNotification * keyboardShowNotification_;
105- BOOL isKeyboardShown_;
10689}
10790
108- @property (nonatomic , readonly ) UITextPosition *beginningOfDocument;
109- @property (nonatomic , readonly ) UITextPosition *endOfDocument;
110- @property (nonatomic , assign ) id <UITextInputDelegate> inputDelegate;
111- @property (nonatomic , readonly ) UITextRange *markedTextRange;
112- @property (nonatomic , copy ) NSDictionary *markedTextStyle;
113- @property (readwrite , copy ) UITextRange *selectedTextRange;
114- @property (nonatomic , readonly ) id <UITextInputTokenizer> tokenizer;
115- @property (nonatomic , readonly , getter = isKeyboardShown) BOOL isKeyboardShown;
116- @property (nonatomic , copy ) NSNotification * keyboardShowNotification;
117- @property (nonatomic ) UITextAutocorrectionType autocorrectionType; // default is UITextAutocorrectionTypeDefault
118-
11991/* * creates an initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer */
12092+ (id ) viewWithFrame : (CGRect)frame ;
12193/* * creates an initializes an CCEAGLView with a frame, a color buffer format, and 0-bit depth buffer */
@@ -132,7 +104,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved.
132104/* * Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support */
133105- (id ) initWithFrame : (CGRect)frame pixelFormat : (NSString *)format depthFormat : (GLuint)depth preserveBackbuffer : (BOOL )retained sharegroup : (EAGLSharegroup*)sharegroup multiSampling : (BOOL )sampling numberOfSamples : (unsigned int )nSamples ;
134106
135- /* * pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit) */
107+ // // * pixel format: it could be RGBA8 (32-bit) or RGB565 (16-bit)
136108@property (nonatomic ,readonly ) NSString * pixelFormat;
137109/* * depth format of the render buffer: 0, 16 or 24 bits*/
138110@property (nonatomic ,readonly ) GLuint depthFormat;
@@ -157,6 +129,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved.
157129
158130-(void ) doAnimationWhenKeyboardMoveWithDuration : (float ) duration distance : (float ) dis ;
159131-(void ) doAnimationWhenAnotherEditBeClicked ;
160- @end
161132
162- #endif // CC_PLATFORM_IOS
133+ - (void ) showKeyboard ;
134+ - (void ) hideKeyboard ;
135+ @end
0 commit comments