PuzzleSDK
VibrateTest.h
浏览该文件的文档.
1/****************************************************************************
2 Copyright (c) 2014-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#include "platform/CCPlatformConfig.h"
27
28#ifndef __VIBRATE_TEST_H_
29#define __VIBRATE_TEST_H_
30
31#include "cocos2d.h"
32#include "../BaseTest.h"
33
34DEFINE_TEST_SUITE(VibrateTests);
35
37{
38public:
39 virtual std::string title() const override;
40 virtual void onExit() override;
41
42};
43
45{
46public:
48 virtual ~VibrateControlTest();
49
50 virtual bool init()override;
51 virtual std::string title() const override;
52
53private:
54 float _duration = 0.f;
55
56 void* _durationLabel = nullptr;
57 void* _durationSlider = nullptr;
58};
59
60
61#endif /* defined(__VIBRATE_TEST_H_) */
DEFINE_TEST_SUITE(VibrateTests)
virtual ~VibrateControlTest()
void * _durationSlider
Definition: VibrateTest.h:57
CREATE_FUNC(VibrateControlTest)
virtual bool init() override
virtual std::string title() const override
virtual std::string title() const override
virtual void onExit() override