MCPcopy Create free account
hub / github.com/MyGUI/mygui / createScene

Method createScene

UnitTests/UnitTest_RotatingSkin/DemoKeeper.cpp:22–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void DemoKeeper::createScene()
23 {
24 base::BaseDemoManager::createScene();
25 const MyGUI::VectorWidgetPtr& root = MyGUI::LayoutManager::getInstance().loadLayout("HelpPanel.layout");
26 root.at(0)->findWidget("Text")->castType<MyGUI::TextBox>()->setCaption(
27 "Move mouse to rotate skin. Right mouse click to set new center.");
28
29 MyGUI::Window* window = MyGUI::Gui::getInstance().createWidget<MyGUI::Window>(
30 "WindowCS",
31 MyGUI::IntCoord(100, 100, 400, 400),
32 MyGUI::Align::Default,
33 "Main");
34 window->setMinSize(100, 100);
35
36 image = window->createWidget<MyGUI::ImageBox>(
37 "RotatingSkin",
38 MyGUI::IntCoord(150, 150, 100, 150),
39 MyGUI::Align::Default /*, "Main"*/);
40 image->setImageTexture("Wallpaper.png");
41
42 MyGUI::ISubWidget* main = image->getSubWidgetMain();
43 rotato = main->castType<MyGUI::RotatingSkin>();
44 }
45
46 void DemoKeeper::injectMousePress(int _absx, int _absy, MyGUI::MouseButton _id)
47 {

Callers

nothing calls this directly

Calls 7

loadLayoutMethod · 0.80
findWidgetMethod · 0.80
setMinSizeMethod · 0.80
setImageTextureMethod · 0.80
getSubWidgetMainMethod · 0.80
IntCoordFunction · 0.50
setCaptionMethod · 0.45

Tested by

no test coverage detected