#include <NewEventDispatcherTest.h>
◆ WindowEventsTest()
| WindowEventsTest::WindowEventsTest |
( |
| ) |
|
在文件 NewEventDispatcherTest.cpp 第 1557 行定义.
1559#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
1560 auto dispatcher = Director::getInstance()->getEventDispatcher();
1561 dispatcher->addCustomEventListener(GLViewImpl::EVENT_WINDOW_RESIZED, [](EventCustom* event) {
1563 log(
"<<< WINDOW RESIZED! >>> ");
1565 dispatcher->addCustomEventListener(GLViewImpl::EVENT_WINDOW_FOCUSED, [](EventCustom* event) {
1566 log(
"<<< WINDOW FOCUSED! >>> ");
1568 dispatcher->addCustomEventListener(GLViewImpl::EVENT_WINDOW_UNFOCUSED, [](EventCustom* event) {
1569 log(
"<<< WINDOW BLURRED! >>> ");
◆ CREATE_FUNC()
◆ subtitle()
| std::string WindowEventsTest::subtitle |
( |
| ) |
const |
|
overridevirtual |
重载 TestCase .
在文件 NewEventDispatcherTest.cpp 第 1579 行定义.
1581#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
1582 return "Resize and Switch to another window and back. Read Logs.";
1584 return "Unsupported platform.";
◆ title()
| std::string WindowEventsTest::title |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成: