PuzzleSDK
UIImageViewTest.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__UIImageViewTest__
27
#define __TestCpp__UIImageViewTest__
28
29
#include "../UIScene.h"
30
31
DEFINE_TEST_SUITE
(UIImageViewTests);
32
33
class
UIImageViewTest
:
public
UIScene
34
{
35
public
:
36
CREATE_FUNC
(
UIImageViewTest
);
37
38
virtual
bool
init
()
override
;
39
40
void
printWidgetResources
(cocos2d::Ref* sender);
41
protected
:
42
cocos2d::ui::ImageView*
_image
;
43
};
44
45
class
UIImageViewTest_Scale9
:
public
UIScene
46
{
47
public
:
48
CREATE_FUNC
(
UIImageViewTest_Scale9
);
49
50
virtual
bool
init
()
override
;
51
};
52
53
class
UIImageViewTest_Scale9_State_Change
:
public
UIScene
54
{
55
public
:
56
CREATE_FUNC
(
UIImageViewTest_Scale9_State_Change
);
57
58
virtual
bool
init
()
override
;
59
};
60
61
class
UIImageViewTest_ContentSize
:
public
UIScene
62
{
63
public
:
64
CREATE_FUNC
(
UIImageViewTest_ContentSize
);
65
66
virtual
bool
init
()
override
;
67
};
68
69
class
UIImageViewFlipTest
:
public
UIScene
70
{
71
public
:
72
CREATE_FUNC
(
UIImageViewFlipTest
);
73
74
virtual
bool
init
()
override
;
75
};
76
77
class
UIImageViewIssue12249Test
:
public
UIScene
78
{
79
public
:
80
CREATE_FUNC
(
UIImageViewIssue12249Test
);
81
82
virtual
bool
init
()
override
;
83
};
84
85
#endif
/* defined(__TestCpp__UIImageViewTest__) */
DEFINE_TEST_SUITE
DEFINE_TEST_SUITE(UIImageViewTests)
UIImageViewFlipTest
Definition:
UIImageViewTest.h:70
UIImageViewFlipTest::init
virtual bool init() override
Definition:
UIImageViewTest.cpp:232
UIImageViewFlipTest::CREATE_FUNC
CREATE_FUNC(UIImageViewFlipTest)
UIImageViewIssue12249Test
Definition:
UIImageViewTest.h:78
UIImageViewIssue12249Test::init
virtual bool init() override
Definition:
UIImageViewTest.cpp:284
UIImageViewIssue12249Test::CREATE_FUNC
CREATE_FUNC(UIImageViewIssue12249Test)
UIImageViewTest_ContentSize
Definition:
UIImageViewTest.h:62
UIImageViewTest_ContentSize::init
virtual bool init() override
Definition:
UIImageViewTest.cpp:163
UIImageViewTest_ContentSize::CREATE_FUNC
CREATE_FUNC(UIImageViewTest_ContentSize)
UIImageViewTest_Scale9_State_Change
Definition:
UIImageViewTest.h:54
UIImageViewTest_Scale9_State_Change::CREATE_FUNC
CREATE_FUNC(UIImageViewTest_Scale9_State_Change)
UIImageViewTest_Scale9_State_Change::init
virtual bool init() override
Definition:
UIImageViewTest.cpp:119
UIImageViewTest_Scale9
Definition:
UIImageViewTest.h:46
UIImageViewTest_Scale9::init
virtual bool init() override
Definition:
UIImageViewTest.cpp:85
UIImageViewTest_Scale9::CREATE_FUNC
CREATE_FUNC(UIImageViewTest_Scale9)
UIImageViewTest
Definition:
UIImageViewTest.h:34
UIImageViewTest::printWidgetResources
void printWidgetResources(cocos2d::Ref *sender)
Definition:
UIImageViewTest.cpp:77
UIImageViewTest::init
virtual bool init() override
Definition:
UIImageViewTest.cpp:42
UIImageViewTest::CREATE_FUNC
CREATE_FUNC(UIImageViewTest)
UIImageViewTest::_image
cocos2d::ui::ImageView * _image
Definition:
UIImageViewTest.h:42
UIScene
Definition:
UIScene.h:36
Users
yujizhu
Documents
Git
cocos2d-x-4.0
tests
cpp-tests
Classes
UITest
CocoStudioGUITest
UIImageViewTest
UIImageViewTest.h
制作者
1.9.2