PuzzleSDK
UITextFieldTest.h
浏览该文件的文档.
1/****************************************************************************
2 Copyright (c) 2013 cocos2d-x.org
3 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
4
5 http://www.cocos2d-x.org
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26#ifndef __TestCpp__UITextFieldTest__
27#define __TestCpp__UITextFieldTest__
28
29#include "../UIScene.h"
30
31DEFINE_TEST_SUITE(UITextFieldTests);
32
34{
35public:
37
40 virtual bool init() override;
41 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
42
43protected:
44
45 cocos2d::ui::Text* _displayValueLabel;
46};
47
49{
50public:
52
55 virtual bool init() override;
56 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
57
58protected:
59
60 cocos2d::ui::Text* _displayValueLabel;
61};
62
64{
65public:
67
70 virtual bool init() override;
71 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
72
73protected:
74
75 cocos2d::ui::Text* _displayValueLabel;
76};
77
79{
80public:
82
85 virtual bool init() override;
86 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
87
88protected:
89
90 cocos2d::ui::Text* _displayValueLabel;
91};
92
94{
95public:
97
100 virtual bool init() override;
101 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
102
103protected:
104
105 cocos2d::ui::Text* _displayValueLabel;
106};
107
109{
110public:
112
115 virtual bool init() override;
116 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
117
118protected:
119
120 cocos2d::ui::Text* _displayValueLabel;
121};
122
124{
125public:
127
130 virtual bool init() override;
131 void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type);
132
133protected:
134
135 cocos2d::ui::Text* _displayValueLabel;
136};
137#endif /* defined(__TestCpp__UITextFieldTest__) */
DEFINE_TEST_SUITE(UITextFieldTests)
cocos2d::ui::Text * _displayValueLabel
virtual bool init() override
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
CREATE_FUNC(UITextFieldTest_BMFont)
CREATE_FUNC(UITextFieldTest_LineWrap)
cocos2d::ui::Text * _displayValueLabel
virtual bool init() override
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
virtual bool init() override
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
cocos2d::ui::Text * _displayValueLabel
CREATE_FUNC(UITextFieldTest_MaxLength)
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
CREATE_FUNC(UITextFieldTest_Password)
virtual bool init() override
cocos2d::ui::Text * _displayValueLabel
CREATE_FUNC(UITextFieldTest_PlaceHolderColor)
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
cocos2d::ui::Text * _displayValueLabel
CREATE_FUNC(UITextFieldTest_TrueTypeFont)
virtual bool init() override
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
cocos2d::ui::Text * _displayValueLabel
cocos2d::ui::Text * _displayValueLabel
virtual bool init() override
void textFieldEvent(cocos2d::Ref *sender, cocos2d::ui::TextField::EventType type)
CREATE_FUNC(UITextFieldTest)