PuzzleSDK
UIScene类 参考

#include <UIScene.h>

继承自 TestCase .

Issue12249, Issue12692, Issue16073Test, Issue17116, Issue8316, SimpleVideoPlayerTest, UIButtonCloneTest, UIButtonDisableDefaultTest, UIButtonFlipTest, UIButtonIgnoreContentSizeTest, UIButtonNormalDefaultTest, UIButtonScale9ChangeSpriteFrame, UIButtonTest, UIButtonTestRemoveSelf, UIButtonTestSwitchScale9, UIButtonTestZoomScale, UIButtonTest_PressedAction, UIButtonTest_Scale9, UIButtonTest_Scale9_State_Change, UIButtonTest_Title, UIButtonTextOnly, UIButtonTitleEffectTest, UIButtonWithPolygonInfo, UICheckBoxCopyTest, UICheckBoxDefaultBehaviorTest, UICheckBoxTest, UIEditBoxTest, UIEditBoxTestPressedAndDisabled, UIEditBoxTestTextHorizontalAlignment, UIEditBoxTestToggleVisibility, UIFocusTestBase, UIImageViewFlipTest, UIImageViewIssue12249Test, UIImageViewTest, UIImageViewTest_ContentSize, UIImageViewTest_Scale9, UIImageViewTest_Scale9_State_Change, UILabelTest_Effect, UILayoutComponentTest, UILayoutTest, UILayoutTest_BackGroundImage, UILayoutTest_BackGroundImage_Scale9, UILayoutTest_Color, UILayoutTest_Gradient, UILayoutTest_Layout_Linear_Horizontal, UILayoutTest_Layout_Linear_Vertical, UILayoutTest_Layout_Relative_Align_Parent, UILayoutTest_Layout_Relative_Location, UILayoutTest_Layout_Scaled_Widget, UIListViewTest_Horizontal, UIListViewTest_Magnetic, UIListViewTest_Padding, UIListViewTest_ScrollToItem, UIListViewTest_Vertical, UILoadingBarIssue12249, UILoadingBarReloadTexture, UILoadingBarTest_Direction, UILoadingBarTest_Left, UILoadingBarTest_Left_Scale9, UILoadingBarTest_Right, UILoadingBarTest_Right_Scale9, UILoadingBarTest_Scale9_State_Change, UIPageViewButtonTest, UIPageViewChildSizeTest, UIPageViewDisableTouchTest, UIPageViewDynamicAddAndRemoveTest, UIPageViewIndicatorTest, UIPageViewJumpToPageTest, UIPageViewTest, UIPageViewTouchPropagationTest, UIPageViewVerticalTest, UIRadioButtonTabTest, UIRadioButtonTest, UIRadioButtonTwoGroupsTest, UIRichTextTest, UIRichTextXMLBR, UIRichTextXMLBasic, UIRichTextXMLColor, UIRichTextXMLExtend, UIRichTextXMLFace, UIRichTextXMLGlow, UIRichTextXMLImg, UIRichTextXMLInvalid, UIRichTextXMLOutline, UIRichTextXMLSUIB, UIRichTextXMLSUIB2, UIRichTextXMLSUIB3, UIRichTextXMLShadow, UIRichTextXMLSmallBig, UIRichTextXMLSpace, UIRichTextXMLUrl, UIRichTextXMLUrlImg, UIS9BatchNodeBasic, UIS9BatchNodeScaleWithCapInsets, UIS9BatchNodeScaledNoInsets, UIS9BatchTest, UIS9CascadeOpacityAndColor, UIS9ChangeAnchorPoint, UIS9EnableScale9FalseTest, UIS9Flip, UIS9FrameNameSpriteSheet, UIS9FrameNameSpriteSheetCropped, UIS9FrameNameSpriteSheetCroppedRotated, UIS9FrameNameSpriteSheetCroppedRotatedSimple, UIS9FrameNameSpriteSheetCroppedSimple, UIS9FrameNameSpriteSheetInsets, UIS9FrameNameSpriteSheetInsetsScaled, UIS9FrameNameSpriteSheetRotated, UIS9FrameNameSpriteSheetRotatedInsets, UIS9FrameNameSpriteSheetRotatedInsetsScaled, UIS9FrameNameSpriteSheetRotatedScaledNoInsets, UIS9FrameNameSpriteSheetRotatedSetCapInsetLater, UIS9FrameNameSpriteSheetScaledNoInsets, UIS9GlobalZOrderTest, UIS9GrayStateOpacityTest, UIS9NinePatchTest, UIS9ToggleRenderingTypeTest, UIS9ZOrder, UIS9_TexturePacker, UIScale9SpriteHierarchialTest, UIScale9SpriteTest, UIScale9SpriteTouchTest, UIScrollViewDisableTest, UIScrollViewInnerSize, UIScrollViewNestTest, UIScrollViewRotated, UIScrollViewStopScrollingTest, UIScrollViewTestEvents, UIScrollViewTest_Both, UIScrollViewTest_Horizontal, UIScrollViewTest_ScrollToPercentBothDirection, UIScrollViewTest_ScrollToPercentBothDirection_Bounce, UIScrollViewTest_Vertical, UISliderDisabledDefaultTest, UISliderIssue12249Test, UISliderNewEventCallbackTest, UISliderNormalDefaultTest, UISliderTest, UISliderTest_Scale9, UISliderTest_Scale9_State_Change, UITabControlTest, UITextAtlasETC1ShadowTest, UITextAtlasTest, UITextBMFontTest, UITextFieldTest, UITextFieldTest_BMFont, UITextFieldTest_LineWrap, UITextFieldTest_MaxLength, UITextFieldTest_Password, UITextFieldTest_PlaceHolderColor, UITextFieldTest_TrueTypeFont, UITextTest, UITextTest_Clone, UITextTest_IgnoreContentSize, UITextTest_LineWrap, UITextTest_TTF, UIWidgetAddNodeTest, VideoPlayerTest , 以及 WebViewTest 继承.

+ UIScene 的协作图:

Public 成员函数

 UIScene ()
 
 ~UIScene ()
 
virtual bool init () override
 
virtual void onEnter () override
 
- Public 成员函数 继承自 TestCase
 TestCase ()
 
 ~TestCase ()
 
virtual std::string title () const
 
virtual std::string subtitle () const
 
virtual Type getTestType () const
 
virtual float getDuration () const
 
virtual std::string getExpectedOutput () const
 
virtual std::string getActualOutput () const
 
virtual void restartTestCallback (cocos2d::Ref *sender)
 
virtual void nextTestCallback (cocos2d::Ref *sender)
 
virtual void priorTestCallback (cocos2d::Ref *sender)
 
virtual void onBackCallback (cocos2d::Ref *sender)
 
void setTestSuite (TestSuite *testSuite)
 
TestSuitegetTestSuite () const
 
float getRunTime () const
 
void setTestCaseName (const std::string &name)
 
std::string getTestCaseName () const
 
const cocos2d::Label * getSubtitleLable () const
 
const cocos2d::MenuItemImage * getRestartTestItem () const
 

Protected 属性

cocos2d::Layer * _uiLayer
 
cocos2d::ui::Layout * _widget
 
cocos2d::ui::Text * _sceneTitle
 
- Protected 属性 继承自 TestCase
cocos2d::MenuItemImage * _priorTestItem
 
cocos2d::MenuItemImage * _restartTestItem
 
cocos2d::MenuItemImage * _nextTestItem
 
cocos2d::Label * _titleLabel
 
cocos2d::Label * _subtitleLabel
 

额外继承的成员函数

- Public 类型 继承自 TestCase
enum class  Type { ROBUSTNESS , UNIT , GRAPHICAL_STATIC , MANUAL }
 
- Public 属性 继承自 TestCase
CC_CONSTRUCTOR_ACCESS __pad0__: virtual bool init() override
 

详细描述

在文件 UIScene.h35 行定义.

构造及析构函数说明

◆ UIScene()

UIScene::UIScene ( )

在文件 UIScene.cpp34 行定义.

35: _uiLayer(nullptr)
36, _sceneTitle(nullptr)
37{
38
39}
cocos2d::Layer * _uiLayer
Definition: UIScene.h:44
cocos2d::ui::Text * _sceneTitle
Definition: UIScene.h:46

◆ ~UIScene()

UIScene::~UIScene ( )

在文件 UIScene.cpp41 行定义.

42{
43
44}

成员函数说明

◆ init()

bool UIScene::init ( )
overridevirtual

UIButtonTest, UIButtonTest_Scale9, UIButtonTest_Scale9_State_Change, UIButtonTest_PressedAction, UIButtonTest_Title, UIButtonTestRemoveSelf, UIButtonTestSwitchScale9, UIButtonTestZoomScale, UIButtonTextOnly, UIButtonIgnoreContentSizeTest, UIButtonTitleEffectTest, UIButtonFlipTest, UIButtonNormalDefaultTest, UIButtonDisableDefaultTest, UIButtonCloneTest, Issue12249, Issue17116, UIButtonWithPolygonInfo, UIButtonScale9ChangeSpriteFrame, UICheckBoxTest, UICheckBoxDefaultBehaviorTest, UICheckBoxCopyTest, UIEditBoxTest, UIEditBoxTestToggleVisibility, UIEditBoxTestTextHorizontalAlignment, UIEditBoxTestPressedAndDisabled, UIFocusTestBase, UIFocusTestHorizontal, UIFocusTestVertical, UIFocusTestNestedLayout1, UIFocusTestNestedLayout2, UIFocusTestNestedLayout3, UIImageViewTest, UIImageViewTest_Scale9, UIImageViewTest_Scale9_State_Change, UIImageViewTest_ContentSize, UIImageViewFlipTest, UIImageViewIssue12249Test, UILayoutTest, UILayoutTest_Color, UILayoutTest_Gradient, UILayoutTest_BackGroundImage, UILayoutTest_BackGroundImage_Scale9, UILayoutTest_Layout_Linear_Vertical, UILayoutTest_Layout_Linear_Horizontal, UILayoutTest_Layout_Relative_Align_Parent, UILayoutTest_Layout_Relative_Location, UILayoutTest_Layout_Scaled_Widget, UILayoutComponentTest, UILayoutComponent_Berth_Test, UILayoutComponent_Berth_Stretch_Test, UIListViewTest_Vertical, UIListViewTest_Horizontal, Issue12692, Issue8316, UIListViewTest_ScrollToItem, UIListViewTest_Magnetic, UIListViewTest_Padding, UILoadingBarTest_Left, UILoadingBarTest_Right, UILoadingBarTest_Left_Scale9, UILoadingBarTest_Right_Scale9, UILoadingBarTest_Scale9_State_Change, UILoadingBarReloadTexture, UILoadingBarIssue12249, UILoadingBarTest_Direction, UIPageViewTest, UIPageViewButtonTest, UIPageViewTouchPropagationTest, UIPageViewDynamicAddAndRemoveTest, UIPageViewJumpToPageTest, UIPageViewVerticalTest, UIPageViewDisableTouchTest, UIPageViewChildSizeTest, UIPageViewIndicatorTest, UIRadioButtonTest, UIRadioButtonTwoGroupsTest, UIRadioButtonTabTest, UIRichTextTest, UIRichTextXMLBasic, UIRichTextXMLSmallBig, UIRichTextXMLColor, UIRichTextXMLSUIB, UIRichTextXMLSUIB2, UIRichTextXMLSUIB3, UIRichTextXMLImg, UIRichTextXMLUrl, UIRichTextXMLUrlImg, UIRichTextXMLFace, UIRichTextXMLBR, UIRichTextXMLInvalid, UIRichTextXMLOutline, UIRichTextXMLShadow, UIRichTextXMLGlow, UIRichTextXMLExtend, UIRichTextXMLSpace, UIScale9SpriteTest, UIScale9SpriteHierarchialTest, UIScale9SpriteTouchTest, UIS9BatchNodeBasic, UIS9FrameNameSpriteSheet, UIS9FrameNameSpriteSheetRotated, UIS9FrameNameSpriteSheetCroppedSimple, UIS9FrameNameSpriteSheetCroppedRotatedSimple, UIS9FrameNameSpriteSheetCropped, UIS9FrameNameSpriteSheetCroppedRotated, UIS9BatchNodeScaledNoInsets, UIS9FrameNameSpriteSheetScaledNoInsets, UIS9FrameNameSpriteSheetRotatedScaledNoInsets, UIS9BatchNodeScaleWithCapInsets, UIS9FrameNameSpriteSheetInsets, UIS9FrameNameSpriteSheetInsetsScaled, UIS9FrameNameSpriteSheetRotatedInsets, UIS9_TexturePacker, UIS9FrameNameSpriteSheetRotatedInsetsScaled, UIS9FrameNameSpriteSheetRotatedSetCapInsetLater, UIS9CascadeOpacityAndColor, UIS9ZOrder, UIS9Flip, UIS9ChangeAnchorPoint, UIS9NinePatchTest, UIS9BatchTest, UIS9ToggleRenderingTypeTest, UIS9GlobalZOrderTest, UIS9EnableScale9FalseTest, UIS9GrayStateOpacityTest, UIScrollViewTest_Vertical, UIScrollViewTest_Horizontal, UIScrollViewTest_Both, UIScrollViewTest_ScrollToPercentBothDirection, UIScrollViewTest_ScrollToPercentBothDirection_Bounce, UIScrollViewNestTest, UIScrollViewRotated, UIScrollViewDisableTest, UIScrollViewInnerSize, UIScrollViewTestEvents, UIScrollViewStopScrollingTest, UISliderTest, UISliderTest_Scale9, UISliderTest_Scale9_State_Change, UISliderNormalDefaultTest, UISliderDisabledDefaultTest, UISliderNewEventCallbackTest, UISliderIssue12249Test, UITabControlTest, UITextAtlasTest, UITextAtlasETC1ShadowTest, UITextBMFontTest, UITextFieldTest, UITextFieldTest_MaxLength, UITextFieldTest_Password, UITextFieldTest_LineWrap, UITextFieldTest_TrueTypeFont, UITextFieldTest_BMFont, UITextFieldTest_PlaceHolderColor, UITextTest, UITextTest_LineWrap, UILabelTest_Effect, UITextTest_TTF, UITextTest_IgnoreContentSize, UITextTest_Clone, Issue16073Test, VideoPlayerTest, SimpleVideoPlayerTest, WebViewTest , 以及 UIWidgetAddNodeTest 重载.

在文件 UIScene.cpp46 行定义.

47{
48 if (TestCase::init())
49 {
50 _uiLayer = Layer::create();
51 addChild(_uiLayer);
52
53 _widget = dynamic_cast<Layout*>(cocostudio::GUIReader::getInstance()->widgetFromJsonFile("cocosui/UITest/UITest.json"));
54 _uiLayer->addChild(_widget);
55
56 Size screenSize = Director::getInstance()->getWinSize();
57 Size rootSize = _widget->getContentSize();
58 _uiLayer->setPosition(Vec2((screenSize.width - rootSize.width) / 2,
59 (screenSize.height - rootSize.height) / 2));
60
61 // disable these widgets because they are conflict with menu items created in `TestCase`
62
63 auto restartButton = Helper::seekWidgetByName(_widget, "middle_Button");
64 restartButton->setVisible(false);
65 restartButton->setEnabled(false);
66
67 auto leftButton = Helper::seekWidgetByName(_widget, "left_Button");
68 leftButton->setVisible(false);
69 leftButton->setEnabled(false);
70
71 auto rightButton = Helper::seekWidgetByName(_widget, "right_Button");
72 rightButton->setVisible(false);
73 rightButton->setEnabled(false);
74
75 Layout* root = static_cast<Layout*>(_uiLayer->getChildByTag(81));
76
77 _sceneTitle = dynamic_cast<Text*>(root->getChildByName("UItest"));
78 return true;
79 }
80 return false;
81}
cocos2d::ui::Layout * _widget
Definition: UIScene.h:45

引用了 _sceneTitle, _uiLayer , 以及 _widget.

被这些函数引用 UIButtonTest::init(), UIButtonTest_Scale9::init(), UIButtonTest_Scale9_State_Change::init(), UIButtonTest_PressedAction::init(), UIButtonTest_Title::init(), UIButtonTestRemoveSelf::init(), UIButtonTestSwitchScale9::init(), UIButtonTestZoomScale::init(), UIButtonTextOnly::init(), UIButtonIgnoreContentSizeTest::init(), UIButtonTitleEffectTest::init(), UIButtonFlipTest::init(), UIButtonNormalDefaultTest::init(), UIButtonDisableDefaultTest::init(), UIButtonCloneTest::init(), Issue12249::init(), Issue17116::init(), UIButtonWithPolygonInfo::init(), UIButtonScale9ChangeSpriteFrame::init(), UICheckBoxTest::init(), UICheckBoxDefaultBehaviorTest::init(), UICheckBoxCopyTest::init(), UIEditBoxTest::init(), UIEditBoxTestToggleVisibility::init(), UIEditBoxTestTextHorizontalAlignment::init(), UIEditBoxTestPressedAndDisabled::init(), UIFocusTestBase::init(), UIImageViewTest::init(), UIImageViewTest_Scale9::init(), UIImageViewTest_Scale9_State_Change::init(), UIImageViewTest_ContentSize::init(), UIImageViewFlipTest::init(), UIImageViewIssue12249Test::init(), UILayoutTest::init(), UILayoutTest_Color::init(), UILayoutTest_Gradient::init(), UILayoutTest_BackGroundImage::init(), UILayoutTest_BackGroundImage_Scale9::init(), UILayoutTest_Layout_Linear_Vertical::init(), UILayoutTest_Layout_Linear_Horizontal::init(), UILayoutTest_Layout_Relative_Align_Parent::init(), UILayoutTest_Layout_Relative_Location::init(), UILayoutTest_Layout_Scaled_Widget::init(), UILayoutComponentTest::init(), UIListViewTest_Vertical::init(), UIListViewTest_Horizontal::init(), Issue12692::init(), Issue8316::init(), UIListViewTest_ScrollToItem::init(), UIListViewTest_Magnetic::init(), UIListViewTest_Padding::init(), UILoadingBarTest_Left::init(), UILoadingBarTest_Right::init(), UILoadingBarTest_Left_Scale9::init(), UILoadingBarTest_Right_Scale9::init(), UILoadingBarTest_Scale9_State_Change::init(), UILoadingBarReloadTexture::init(), UILoadingBarIssue12249::init(), UILoadingBarTest_Direction::init(), UIPageViewTest::init(), UIPageViewButtonTest::init(), UIPageViewTouchPropagationTest::init(), UIPageViewDynamicAddAndRemoveTest::init(), UIPageViewJumpToPageTest::init(), UIPageViewVerticalTest::init(), UIPageViewDisableTouchTest::init(), UIPageViewChildSizeTest::init(), UIPageViewIndicatorTest::init(), UIRadioButtonTest::init(), UIRadioButtonTwoGroupsTest::init(), UIRadioButtonTabTest::init(), UIRichTextTest::init(), UIRichTextXMLBasic::init(), UIRichTextXMLSmallBig::init(), UIRichTextXMLColor::init(), UIRichTextXMLSUIB::init(), UIRichTextXMLSUIB2::init(), UIRichTextXMLSUIB3::init(), UIRichTextXMLImg::init(), UIRichTextXMLUrl::init(), UIRichTextXMLUrlImg::init(), UIRichTextXMLFace::init(), UIRichTextXMLBR::init(), UIRichTextXMLInvalid::init(), UIRichTextXMLOutline::init(), UIRichTextXMLShadow::init(), UIRichTextXMLGlow::init(), UIRichTextXMLExtend::init(), UIRichTextXMLSpace::init(), UIScale9SpriteTest::init(), UIScale9SpriteHierarchialTest::init(), UIScale9SpriteTouchTest::init(), UIS9BatchNodeBasic::init(), UIS9FrameNameSpriteSheet::init(), UIS9FrameNameSpriteSheetRotated::init(), UIS9FrameNameSpriteSheetCroppedSimple::init(), UIS9FrameNameSpriteSheetCroppedRotatedSimple::init(), UIS9FrameNameSpriteSheetCropped::init(), UIS9FrameNameSpriteSheetCroppedRotated::init(), UIS9BatchNodeScaledNoInsets::init(), UIS9FrameNameSpriteSheetScaledNoInsets::init(), UIS9FrameNameSpriteSheetRotatedScaledNoInsets::init(), UIS9BatchNodeScaleWithCapInsets::init(), UIS9FrameNameSpriteSheetInsets::init(), UIS9FrameNameSpriteSheetInsetsScaled::init(), UIS9FrameNameSpriteSheetRotatedInsets::init(), UIS9_TexturePacker::init(), UIS9FrameNameSpriteSheetRotatedInsetsScaled::init(), UIS9FrameNameSpriteSheetRotatedSetCapInsetLater::init(), UIS9CascadeOpacityAndColor::init(), UIS9ZOrder::init(), UIS9Flip::init(), UIS9ChangeAnchorPoint::init(), UIS9NinePatchTest::init(), UIS9BatchTest::init(), UIS9ToggleRenderingTypeTest::init(), UIS9GlobalZOrderTest::init(), UIS9EnableScale9FalseTest::init(), UIS9GrayStateOpacityTest::init(), UIScrollViewTest_Vertical::init(), UIScrollViewTest_Horizontal::init(), UIScrollViewTest_Both::init(), UIScrollViewTest_ScrollToPercentBothDirection::init(), UIScrollViewTest_ScrollToPercentBothDirection_Bounce::init(), UIScrollViewNestTest::init(), UIScrollViewRotated::init(), UIScrollViewDisableTest::init(), UIScrollViewInnerSize::init(), UIScrollViewTestEvents::init(), UIScrollViewStopScrollingTest::init(), UISliderTest::init(), UISliderTest_Scale9::init(), UISliderTest_Scale9_State_Change::init(), UISliderNormalDefaultTest::init(), UISliderDisabledDefaultTest::init(), UISliderNewEventCallbackTest::init(), UISliderIssue12249Test::init(), UITabControlTest::init(), UITextAtlasTest::init(), UITextAtlasETC1ShadowTest::init(), UITextBMFontTest::init(), UITextFieldTest::init(), UITextFieldTest_MaxLength::init(), UITextFieldTest_Password::init(), UITextFieldTest_LineWrap::init(), UITextFieldTest_TrueTypeFont::init(), UITextFieldTest_BMFont::init(), UITextFieldTest_PlaceHolderColor::init(), UITextTest::init(), UITextTest_LineWrap::init(), UILabelTest_Effect::init(), UITextTest_TTF::init(), UITextTest_IgnoreContentSize::init(), UITextTest_Clone::init(), Issue16073Test::init(), VideoPlayerTest::init(), SimpleVideoPlayerTest::init(), WebViewTest::init() , 以及 UIWidgetAddNodeTest::init().

◆ onEnter()

void UIScene::onEnter ( )
overridevirtual

重载 TestCase .

在文件 UIScene.cpp83 行定义.

84{
86
87 if (_sceneTitle)
88 {
89 _sceneTitle->setString(getTestCaseName());
90 }
91}
std::string getTestCaseName() const
Definition: BaseTest.h:92
virtual void onEnter() override
Definition: BaseTest.cpp:430

引用了 _sceneTitle, TestCase::getTestCaseName() , 以及 TestCase::onEnter().

+ 函数调用图:

类成员变量说明

◆ _sceneTitle

cocos2d::ui::Text* UIScene::_sceneTitle
protected

在文件 UIScene.h46 行定义.

被这些函数引用 init() , 以及 onEnter().

◆ _uiLayer

cocos2d::Layer* UIScene::_uiLayer
protected

在文件 UIScene.h44 行定义.

被这些函数引用 UIRadioButtonTest::addRadioButton(), VideoPlayerTest::createSlider(), VideoPlayerTest::createVideo(), SimpleVideoPlayerTest::createVideo(), UIRadioButtonTest::deleteRadioButton(), UIButtonTest::init(), UIButtonTest_Scale9::init(), UIButtonTest_Scale9_State_Change::init(), UIButtonTest_PressedAction::init(), UIButtonTest_Title::init(), UIButtonTestRemoveSelf::init(), UIButtonTestSwitchScale9::init(), UIButtonTestZoomScale::init(), UIButtonTextOnly::init(), UIButtonIgnoreContentSizeTest::init(), UIButtonTitleEffectTest::init(), UIButtonFlipTest::init(), UIButtonNormalDefaultTest::init(), UIButtonDisableDefaultTest::init(), UIButtonCloneTest::init(), Issue12249::init(), UICheckBoxTest::init(), UICheckBoxDefaultBehaviorTest::init(), UICheckBoxCopyTest::init(), UIFocusTestBase::init(), UIFocusTestHorizontal::init(), UIFocusTestVertical::init(), UIFocusTestNestedLayout1::init(), UIFocusTestNestedLayout2::init(), UIFocusTestNestedLayout3::init(), UIImageViewTest::init(), UIImageViewTest_Scale9::init(), UIImageViewTest_Scale9_State_Change::init(), UIImageViewTest_ContentSize::init(), UIImageViewFlipTest::init(), UIImageViewIssue12249Test::init(), UILayoutTest::init(), UILayoutTest_Color::init(), UILayoutTest_Gradient::init(), UILayoutTest_BackGroundImage::init(), UILayoutTest_BackGroundImage_Scale9::init(), UILayoutTest_Layout_Linear_Vertical::init(), UILayoutTest_Layout_Linear_Horizontal::init(), UILayoutTest_Layout_Relative_Align_Parent::init(), UILayoutTest_Layout_Relative_Location::init(), UILayoutTest_Layout_Scaled_Widget::init(), UILayoutComponentTest::init(), UIListViewTest_Vertical::init(), UIListViewTest_Horizontal::init(), Issue12692::init(), Issue8316::init(), UIListViewTest_ScrollToItem::init(), UIListViewTest_Magnetic::init(), UIListViewTest_Padding::init(), UILoadingBarTest_Left::init(), UILoadingBarTest_Right::init(), UILoadingBarTest_Left_Scale9::init(), UILoadingBarTest_Right_Scale9::init(), UILoadingBarTest_Scale9_State_Change::init(), UILoadingBarReloadTexture::init(), UILoadingBarIssue12249::init(), UILoadingBarTest_Direction::init(), UIPageViewTest::init(), UIPageViewButtonTest::init(), UIPageViewTouchPropagationTest::init(), UIPageViewDynamicAddAndRemoveTest::init(), UIPageViewJumpToPageTest::init(), UIPageViewVerticalTest::init(), UIPageViewDisableTouchTest::init(), UIPageViewChildSizeTest::init(), UIPageViewIndicatorTest::init(), UIRadioButtonTest::init(), UIRadioButtonTwoGroupsTest::init(), UIRadioButtonTabTest::init(), UIS9GrayStateOpacityTest::init(), init(), UIScrollViewTest_Vertical::init(), UIScrollViewTest_Horizontal::init(), UIScrollViewTest_Both::init(), UIScrollViewTest_ScrollToPercentBothDirection::init(), UIScrollViewTest_ScrollToPercentBothDirection_Bounce::init(), UIScrollViewNestTest::init(), UIScrollViewRotated::init(), UIScrollViewDisableTest::init(), UIScrollViewInnerSize::init(), UIScrollViewTestEvents::init(), UIScrollViewStopScrollingTest::init(), UISliderTest::init(), UISliderTest_Scale9::init(), UISliderTest_Scale9_State_Change::init(), UISliderNormalDefaultTest::init(), UISliderDisabledDefaultTest::init(), UISliderNewEventCallbackTest::init(), UISliderIssue12249Test::init(), UITabControlTest::init(), UITextAtlasTest::init(), UITextAtlasETC1ShadowTest::init(), UITextBMFontTest::init(), UITextFieldTest::init(), UITextFieldTest_MaxLength::init(), UITextFieldTest_Password::init(), UITextFieldTest_LineWrap::init(), UITextFieldTest_TrueTypeFont::init(), UITextFieldTest_BMFont::init(), UITextFieldTest_PlaceHolderColor::init(), UITextTest::init(), UITextTest_LineWrap::init(), UILabelTest_Effect::init(), UITextTest_TTF::init(), UITextTest_IgnoreContentSize::init(), UITextTest_Clone::init(), Issue16073Test::init(), VideoPlayerTest::init(), SimpleVideoPlayerTest::init(), UIWidgetAddNodeTest::init(), UIPageViewTouchPropagationTest::onButtonClicked(), UIButtonTestZoomScale::sliderEvent(), UIButtonTest::touchEvent(), UIButtonTest_Scale9::touchEvent(), UIButtonTest_PressedAction::touchEvent(), UIButtonTest_Title::touchEvent(), UIButtonTestRemoveSelf::touchEvent(), UILoadingBarTest_Left::update(), UILoadingBarTest_Right::update(), UILoadingBarTest_Left_Scale9::update(), UILoadingBarTest_Right_Scale9::update(), UILoadingBarIssue12249::update(), UILoadingBarReloadTexture::update() , 以及 UIScrollViewStopScrollingTest::update().

◆ _widget

cocos2d::ui::Layout* UIScene::_widget
protected

在文件 UIScene.h45 行定义.

被这些函数引用 UIRadioButtonTest::addRadioButton(), VideoPlayerTest::createVideo(), SimpleVideoPlayerTest::createVideo(), UIButtonTest::init(), UIButtonTest_Scale9::init(), UIButtonTest_Scale9_State_Change::init(), UIButtonTest_PressedAction::init(), UIButtonTest_Title::init(), UIButtonTestRemoveSelf::init(), UIButtonTestSwitchScale9::init(), UIButtonTestZoomScale::init(), UIButtonTextOnly::init(), UIButtonIgnoreContentSizeTest::init(), UIButtonTitleEffectTest::init(), UIButtonFlipTest::init(), UIButtonNormalDefaultTest::init(), UIButtonDisableDefaultTest::init(), UIButtonCloneTest::init(), Issue12249::init(), UICheckBoxTest::init(), UICheckBoxDefaultBehaviorTest::init(), UICheckBoxCopyTest::init(), UIImageViewTest::init(), UIImageViewTest_Scale9::init(), UIImageViewTest_Scale9_State_Change::init(), UIImageViewTest_ContentSize::init(), UIImageViewFlipTest::init(), UIImageViewIssue12249Test::init(), UILayoutTest::init(), UILayoutTest_Color::init(), UILayoutTest_Gradient::init(), UILayoutTest_BackGroundImage::init(), UILayoutTest_BackGroundImage_Scale9::init(), UILayoutTest_Layout_Linear_Vertical::init(), UILayoutTest_Layout_Linear_Horizontal::init(), UILayoutTest_Layout_Relative_Align_Parent::init(), UILayoutTest_Layout_Relative_Location::init(), UILayoutTest_Layout_Scaled_Widget::init(), UILayoutComponentTest::init(), UIListViewTest_Vertical::init(), UIListViewTest_Horizontal::init(), Issue12692::init(), Issue8316::init(), UILoadingBarTest_Left::init(), UILoadingBarTest_Right::init(), UILoadingBarTest_Left_Scale9::init(), UILoadingBarTest_Right_Scale9::init(), UILoadingBarTest_Scale9_State_Change::init(), UILoadingBarReloadTexture::init(), UILoadingBarIssue12249::init(), UILoadingBarTest_Direction::init(), UIPageViewTest::init(), UIPageViewButtonTest::init(), UIPageViewTouchPropagationTest::init(), UIPageViewDynamicAddAndRemoveTest::init(), UIPageViewJumpToPageTest::init(), UIPageViewVerticalTest::init(), UIPageViewDisableTouchTest::init(), UIPageViewChildSizeTest::init(), UIPageViewIndicatorTest::init(), UIRadioButtonTest::init(), UIRadioButtonTwoGroupsTest::init(), UIRadioButtonTabTest::init(), UIRichTextTest::init(), UIRichTextXMLBasic::init(), UIRichTextXMLSmallBig::init(), UIRichTextXMLColor::init(), UIRichTextXMLSUIB::init(), UIRichTextXMLSUIB2::init(), UIRichTextXMLSUIB3::init(), UIRichTextXMLImg::init(), UIRichTextXMLUrl::init(), UIRichTextXMLUrlImg::init(), UIRichTextXMLFace::init(), UIRichTextXMLBR::init(), UIRichTextXMLInvalid::init(), UIRichTextXMLOutline::init(), UIRichTextXMLShadow::init(), UIRichTextXMLGlow::init(), UIRichTextXMLExtend::init(), UIRichTextXMLSpace::init(), UIScale9SpriteTest::init(), UIScale9SpriteHierarchialTest::init(), init(), UIScrollViewTest_Vertical::init(), UIScrollViewTest_Horizontal::init(), UIScrollViewTest_Both::init(), UIScrollViewTest_ScrollToPercentBothDirection::init(), UIScrollViewTest_ScrollToPercentBothDirection_Bounce::init(), UIScrollViewNestTest::init(), UIScrollViewRotated::init(), UIScrollViewDisableTest::init(), UIScrollViewInnerSize::init(), UIScrollViewTestEvents::init(), UIScrollViewStopScrollingTest::init(), UISliderTest::init(), UISliderTest_Scale9::init(), UISliderTest_Scale9_State_Change::init(), UISliderNormalDefaultTest::init(), UISliderDisabledDefaultTest::init(), UISliderNewEventCallbackTest::init(), UISliderIssue12249Test::init(), UITabControlTest::init(), UITextAtlasTest::init(), UITextAtlasETC1ShadowTest::init(), UITextBMFontTest::init(), UITextFieldTest::init(), UITextFieldTest_LineWrap::init(), UITextFieldTest_TrueTypeFont::init(), UITextFieldTest_BMFont::init(), UITextFieldTest_PlaceHolderColor::init(), UITextTest::init(), UITextTest_LineWrap::init(), UILabelTest_Effect::init(), UITextTest_TTF::init(), UITextTest_IgnoreContentSize::init(), UITextTest_Clone::init(), Issue16073Test::init(), UIWidgetAddNodeTest::init(), UITextFieldTest_LineWrap::textFieldEvent() , 以及 UILayoutComponentTest::touchEvent().


该类的文档由以下文件生成: