PuzzleSDK
UIScale9SpriteTest.h
浏览该文件的文档.
1/****************************************************************************
2 Copyright (c) 2013-2016 Chukong Technologies Inc.
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 __cocos2d_tests__UIScale9SpriteTest__
27#define __cocos2d_tests__UIScale9SpriteTest__
28#include "UIScene.h"
29
30DEFINE_TEST_SUITE(UIScale9SpriteTests);
31
33{
34public:
36
39
40 virtual bool init() override;
41};
42
44{
45public:
47
50
51 virtual bool init() override;
52};
53
55{
56public:
58
61
62 virtual bool init() override;
63};
64
65// S9BatchNodeBasic
66
68{
69public:
71
72 virtual bool init() override;
73};
74
75// S9FrameNameSpriteSheet
76
78{
79public:
81
82 virtual bool init() override;
83};
84
85// S9FrameNameSpriteSheetRotated
86
88{
89public:
91
92 virtual bool init() override;
93};
94
95// S9FrameNameSpriteSheetCroppedSimple
96
98{
99public:
101
102 virtual bool init() override;
103};
104
105// S9FrameNameSpriteSheetCroppedRotatedSimple
106
108{
109public:
111
112 virtual bool init() override;
113};
114
115
116// S9FrameNameSpriteSheetCropped
117
119{
120public:
122
123 virtual bool init() override;
124};
125
126// S9FrameNameSpriteSheetCroppedRotated
127
129{
130public:
132
133 virtual bool init() override;
134};
135
136// S9BatchNodeScaledNoInsets
137
139{
140public:
142
143 virtual bool init() override;
144};
145
146// S9FrameNameSpriteSheetScaledNoInsets
147
149{
150public:
152
153 virtual bool init() override;
154};
155
156// S9FrameNameSpriteSheetRotatedScaledNoInsets
157
159{
160public:
162
163 virtual bool init() override;
164};
165
166
167// S9BatchNodeScaleWithCapInsets
168
170{
171public:
173
174 virtual bool init() override;
175};
176
177// S9FrameNameSpriteSheetInsets
178
180{
181public:
183
184 virtual bool init() override;
185};
186
187// S9FrameNameSpriteSheetInsetsScaled
188
190{
191public:
193
194 virtual bool init() override;
195};
196
197// S9FrameNameSpriteSheetRotatedInsets
198
200{
201public:
203
204 virtual bool init() override;
205};
206
207// S9_TexturePacker
208
210{
211public:
213
214 virtual bool init() override;
215};
216
217// S9FrameNameSpriteSheetRotatedInsetsScaled
218
220{
221public:
223
224 virtual bool init() override;
225};
226
227// S9FrameNameSpriteSheetRotatedInsetsScaled
228
230{
231public:
233
234 virtual bool init() override;
235};
236
237// S9CascadeOpacityAndColor
238
240{
241public:
243
244 virtual bool init() override;
245};
246
247// Scale9Sprite ZOrder
248
249class UIS9ZOrder : public UIScene
250{
251public:
253
254 virtual bool init() override;
255};
256
257// Scale9Sprite Flip
258
259class UIS9Flip : public UIScene
260{
261public:
263
264 virtual bool init() override;
265};
266
268{
269public:
271
272 virtual bool init() override;
273};
274
276{
277public:
279
280 virtual bool init() override;
281};
282
284{
285public:
287
288 virtual bool init() override;
289};
290
292{
293public:
295
296 virtual bool init() override;
297};
298
300{
301public:
303
304 virtual bool init() override;
305};
306
308{
309public:
311
312 virtual bool init() override;
313};
314
316{
317public:
319 void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type);
320
321 virtual bool init() override;
322};
323
324#endif /* defined(__cocos2d_tests__UIScale9SpriteTest__) */
DEFINE_TEST_SUITE(UIScale9SpriteTests)
CREATE_FUNC(UIS9_TexturePacker)
virtual bool init() override
virtual bool init() override
CREATE_FUNC(UIS9BatchNodeBasic)
CREATE_FUNC(UIS9BatchNodeScaleWithCapInsets)
CREATE_FUNC(UIS9BatchNodeScaledNoInsets)
virtual bool init() override
CREATE_FUNC(UIS9BatchTest)
virtual bool init() override
CREATE_FUNC(UIS9CascadeOpacityAndColor)
virtual bool init() override
virtual bool init() override
CREATE_FUNC(UIS9ChangeAnchorPoint)
virtual bool init() override
CREATE_FUNC(UIS9EnableScale9FalseTest)
CREATE_FUNC(UIS9Flip)
virtual bool init() override
CREATE_FUNC(UIS9FrameNameSpriteSheetCropped)
CREATE_FUNC(UIS9FrameNameSpriteSheetCroppedRotated)
CREATE_FUNC(UIS9FrameNameSpriteSheetCroppedRotatedSimple)
CREATE_FUNC(UIS9FrameNameSpriteSheetCroppedSimple)
virtual bool init() override
CREATE_FUNC(UIS9FrameNameSpriteSheet)
CREATE_FUNC(UIS9FrameNameSpriteSheetInsets)
CREATE_FUNC(UIS9FrameNameSpriteSheetInsetsScaled)
CREATE_FUNC(UIS9FrameNameSpriteSheetRotated)
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedInsets)
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedInsetsScaled)
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedScaledNoInsets)
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedSetCapInsetLater)
CREATE_FUNC(UIS9FrameNameSpriteSheetScaledNoInsets)
CREATE_FUNC(UIS9GlobalZOrderTest)
virtual bool init() override
virtual bool init() override
void sliderEvent(cocos2d::Ref *sender, cocos2d::ui::Slider::EventType type)
CREATE_FUNC(UIS9GrayStateOpacityTest)
virtual bool init() override
CREATE_FUNC(UIS9NinePatchTest)
CREATE_FUNC(UIS9ToggleRenderingTypeTest)
virtual bool init() override
CREATE_FUNC(UIS9ZOrder)
virtual bool init() override
CREATE_FUNC(UIScale9SpriteHierarchialTest)
virtual bool init() override
CREATE_FUNC(UIScale9SpriteTest)
virtual bool init() override
CREATE_FUNC(UIScale9SpriteTouchTest)