MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / BrowserLayout

Method BrowserLayout

Goldleaf/source/ui/ui_BrowserLayout.cpp:644–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642 }
643
644 BrowserLayout::BrowserLayout() : pu::ui::Layout() {
645 this->cur_exp = fs::GetSdCardExplorer();
646 this->browse_menu = pu::ui::elm::Menu::New(0, 280, pu::ui::render::ScreenWidth, g_Settings.GetColorScheme().menu_base, g_Settings.GetColorScheme().menu_base_focus, g_Settings.json_settings.ui.value().menu_item_size.value(), ComputeDefaultMenuItemCount(g_Settings.json_settings.ui.value().menu_item_size.value()));
647 g_Settings.ApplyToMenu(this->browse_menu);
648 this->empty_dir_text = pu::ui::elm::TextBlock::New(30, 630, cfg::Strings.GetString(49));
649 this->empty_dir_text->SetHorizontalAlign(pu::ui::elm::HorizontalAlign::Center);
650 this->empty_dir_text->SetVerticalAlign(pu::ui::elm::VerticalAlign::Center);
651 this->empty_dir_text->SetColor(g_Settings.GetColorScheme().text);
652 this->Add(this->browse_menu);
653 this->Add(this->empty_dir_text);
654
655 this->SetOnInput(std::bind(&BrowserLayout::OnInput, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
656 }
657
658 void BrowserLayout::ChangePartitionExplorer(fs::Explorer *exp, const bool update_contents) {
659 this->cur_exp = exp;

Callers

nothing calls this directly

Calls 3

GetSdCardExplorerFunction · 0.85
ApplyToMenuMethod · 0.80

Tested by

no test coverage detected