@@ -60,10 +60,6 @@ APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
60
60
Copyright (C) 2008 Apple Inc. All Rights Reserved.
61
61
62
62
*/
63
-
64
- #include " platform/CCPlatformConfig.h"
65
- #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS
66
-
67
63
#import < UIKit/UIKit.h>
68
64
#import < OpenGLES/EAGL.h>
69
65
#import < OpenGLES/EAGLDrawable.h>
@@ -80,42 +76,18 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved.
80
76
* The view content is basically an EAGL surface you render your OpenGL scene into.
81
77
* Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
82
78
*/
83
- @interface CCEAGLView : UIView <UIKeyInput, UITextInput, UITextInputTraits>
79
+ @interface CCEAGLView : UIView
84
80
{
85
81
id <CCESRenderer> renderer_;
86
- EAGLContext *context_; // weak ref
87
82
88
- NSString *pixelformat_;
89
- GLuint depthFormat_;
90
83
BOOL preserveBackbuffer_;
91
-
92
- CGSize size_;
93
84
CGRect safeArea_;
94
85
BOOL discardFramebufferSupported_;
95
86
96
87
// fsaa addition
97
- BOOL multisampling_;
98
88
unsigned int requestedSamples_;
99
- BOOL isUseUITextField;
100
- @private
101
- NSString * markedText_;
102
- CGRect caretRect_;
103
- CGRect originalRect_;
104
- NSNotification * keyboardShowNotification_;
105
- BOOL isKeyboardShown_;
106
89
}
107
90
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
-
119
91
/* * creates an initializes an CCEAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer */
120
92
+ (id ) viewWithFrame : (CGRect)frame ;
121
93
/* * 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.
132
104
/* * Initializes an CCEAGLView with a frame, a color buffer format, a depth buffer format, a sharegroup and multisampling support */
133
105
- (id ) initWithFrame : (CGRect)frame pixelFormat : (NSString *)format depthFormat : (GLuint)depth preserveBackbuffer : (BOOL )retained sharegroup : (EAGLSharegroup*)sharegroup multiSampling : (BOOL )sampling numberOfSamples : (unsigned int )nSamples ;
134
106
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)
136
108
@property (nonatomic ,readonly ) NSString * pixelFormat;
137
109
/* * depth format of the render buffer: 0, 16 or 24 bits*/
138
110
@property (nonatomic ,readonly ) GLuint depthFormat;
@@ -157,6 +129,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved.
157
129
158
130
-(void ) doAnimationWhenKeyboardMoveWithDuration : (float ) duration distance : (float ) dis ;
159
131
-(void ) doAnimationWhenAnotherEditBeClicked ;
160
- @end
161
132
162
- #endif // CC_PLATFORM_IOS
133
+ - (void ) showKeyboard ;
134
+ - (void ) hideKeyboard ;
135
+ @end
0 commit comments