MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / addSection

Method addSection

source/ui/controls/ImGuiLayout.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257std::shared_ptr<LayoutSection> ImGuiLayout::addSection(Msg titleId) {
258 std::shared_ptr<LayoutSection> section = std::make_shared<LayoutSection>();
259 if (titleId != Msg::NONE) {
260 section->setTitle(getTranslation(titleId));
261 }
262 this->sections.push_back(section);
263 return section;
264}
265
266void ImGuiLayout::doLayout() {
267 leftColumnWidth = 0.0f;

Callers 8

ContainersViewMethod · 0.80
createAboutTabMethod · 0.80
createHelpInstallTabMethod · 0.80
createDemoTabMethod · 0.80
createInstallTabMethod · 0.80
createThemeTabMethod · 0.80
createGeneralTabMethod · 0.80

Calls 3

getTranslationFunction · 0.85
setTitleMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected