PuzzleSDK
UILoadingBarTest.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__UILoadingBarTest__
27#define __TestCpp__UILoadingBarTest__
28
29#include "../UIScene.h"
30
31DEFINE_TEST_SUITE(UILoadingBarTests);
32
34{
35public:
37
40 virtual bool init() override;
41 void update(float delta)override;
42 void printWidgetResources(cocos2d::Ref* sender);
43
44protected:
45 int _count;
46 cocos2d::ui::LoadingBar* _loadingBar;
47};
48
50{
51public:
53
56 virtual bool init() override;
57 void update(float delta)override;
58
59protected:
60 int _count;
61};
62
64{
65public:
67
70 virtual bool init() override;
71 void update(float delta)override;
72
73protected:
74 int _count;
75};
76
78{
79public:
81
84 virtual bool init() override;
85 void update(float delta)override;
86
87protected:
88 int _count;
89};
90
92{
93public:
95
98 virtual bool init() override;
99
100protected:
102};
103
105{
106public:
108
111 void update(float dt) override;
112 virtual bool init() override;
113
114protected:
116
117};
118
120{
121public:
123
126 virtual bool init() override;
127 void update(float delta)override;
128
129protected:
131};
132
134{
135public:
137
140 virtual bool init() override;
141protected:
143 cocos2d::ui::LoadingBar* _loadingBar;
144};
145
146#endif /* defined(__TestCpp__UILoadingBarTest__) */
DEFINE_TEST_SUITE(UILoadingBarTests)
virtual bool init() override
void update(float delta) override
CREATE_FUNC(UILoadingBarIssue12249)
virtual bool init() override
void update(float dt) override
CREATE_FUNC(UILoadingBarReloadTexture)
cocos2d::ui::LoadingBar * _loadingBar
CREATE_FUNC(UILoadingBarTest_Direction)
virtual bool init() override
CREATE_FUNC(UILoadingBarTest_Left_Scale9)
void update(float delta) override
virtual bool init() override
void printWidgetResources(cocos2d::Ref *sender)
CREATE_FUNC(UILoadingBarTest_Left)
virtual bool init() override
cocos2d::ui::LoadingBar * _loadingBar
void update(float delta) override
virtual bool init() override
CREATE_FUNC(UILoadingBarTest_Right_Scale9)
void update(float delta) override
virtual bool init() override
CREATE_FUNC(UILoadingBarTest_Right)
void update(float delta) override
CREATE_FUNC(UILoadingBarTest_Scale9_State_Change)