MCPcopy Create free account
hub / github.com/AshampooSystems/boden / createTestUI

Method createTestUI

tests/test_main.cpp:26–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 void createTestUI()
27 {
28 _window = std::make_shared<bdn::ui::Window>();
29 _window->geometry = {0, 0, 300, 400};
30 _window->setLayout(std::make_shared<bdn::ui::yoga::Layout>());
31 _window->stylesheet = FlexJsonStringify({"justifyContent" : "Center", "alignItems" : "Center"});
32
33 _progressLabel = std::make_shared<bdn::ui::Label>();
34 _testNameLabel = std::make_shared<bdn::ui::Label>();
35
36 auto container = std::make_shared<bdn::ui::ContainerView>();
37 container->stylesheet = FlexJsonStringify({"justifyContent" : "Center", "alignItems" : "Center"});
38
39 container->addChildView(_progressLabel);
40 container->addChildView(_testNameLabel);
41
42 _window->contentView = container;
43
44 updateProgressLabel();
45
46 _window->visible = true;
47 }
48
49 void updateProgressLabel()
50 {

Callers

nothing calls this directly

Calls 2

setLayoutMethod · 0.45
addChildViewMethod · 0.45

Tested by

no test coverage detected