PuzzleSDK
UIScrollViewTest.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__UIScrollViewTest__
27#define __TestCpp__UIScrollViewTest__
28
29#include "../UIScene.h"
30
31DEFINE_TEST_SUITE(UIScrollViewTests);
32
34{
35public:
37
40 virtual bool init() override;
41
42protected:
43
44 cocos2d::ui::Text* _displayValueLabel;
45};
46
48{
49public:
51
54 virtual bool init() override;
55
56protected:
57
58 cocos2d::ui::Text* _displayValueLabel;
59};
60
62{
63public:
65
68 virtual bool init() override;
69
70protected:
71
72 cocos2d::ui::Text* _displayValueLabel;
73};
74
76{
77public:
79
82 virtual bool init() override;
83
84protected:
85
86 cocos2d::ui::Text* _displayValueLabel;
87};
88
90{
91public:
93
96 virtual bool init() override;
97
98protected:
99
100 cocos2d::ui::Text* _displayValueLabel;
101};
102
104{
105public:
107
110 virtual bool init() override;
111
112protected:
113
114 cocos2d::ui::Text* _displayValueLabel;
115};
116
118{
119public:
121
124 virtual bool init() override;
125
126protected:
127
128 cocos2d::ui::Text* _displayValueLabel;
129};
130
132{
133public:
135
138 virtual bool init() override;
139
140protected:
141
142 cocos2d::ui::Text* _displayValueLabel;
143};
144
146{
147public:
149
152 virtual bool init() override;
153
154protected:
155
156 cocos2d::ui::Text* _displayValueLabel;
157};
158
160{
161public:
163
165 virtual bool init() override;
166
167protected:
168
169 cocos2d::ui::Text* _displayValueLabel;
170};
171
173{
174public:
176
178 virtual bool init() override;
179
180 virtual void update(float dt) override;
181
182protected:
183
184 cocos2d::ui::Text* _displayValueLabel;
185 cocos2d::ui::ScrollView* _scrollView;
187};
188#endif /* defined(__TestCpp__UIScrollViewTest__) */
DEFINE_TEST_SUITE(UIScrollViewTests)
virtual bool init() override
CREATE_FUNC(UIScrollViewDisableTest)
cocos2d::ui::Text * _displayValueLabel
virtual bool init() override
CREATE_FUNC(UIScrollViewInnerSize)
cocos2d::ui::Text * _displayValueLabel
cocos2d::ui::Text * _displayValueLabel
CREATE_FUNC(UIScrollViewNestTest)
virtual bool init() override
CREATE_FUNC(UIScrollViewRotated)
virtual bool init() override
cocos2d::ui::Text * _displayValueLabel
virtual void update(float dt) override
cocos2d::ui::ScrollView * _scrollView
CREATE_FUNC(UIScrollViewStopScrollingTest)
virtual bool init() override
cocos2d::ui::Text * _displayValueLabel
virtual bool init() override
CREATE_FUNC(UIScrollViewTest_Both)
cocos2d::ui::Text * _displayValueLabel
cocos2d::ui::Text * _displayValueLabel
virtual bool init() override
CREATE_FUNC(UIScrollViewTest_Horizontal)
CREATE_FUNC(UIScrollViewTest_ScrollToPercentBothDirection_Bounce)
CREATE_FUNC(UIScrollViewTest_ScrollToPercentBothDirection)
cocos2d::ui::Text * _displayValueLabel
CREATE_FUNC(UIScrollViewTest_Vertical)
virtual bool init() override
cocos2d::ui::Text * _displayValueLabel
CREATE_FUNC(UIScrollViewTestEvents)
virtual bool init() override