MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / GetFilterComboBoxWidth

Method GetFilterComboBoxWidth

external/ImGuiFileDialog/ImGuiFileDialog.cpp:1684–1691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1682}
1683
1684float IGFD::FilterManager::GetFilterComboBoxWidth() const {
1685#if FILTER_COMBO_AUTO_SIZE
1686 const auto& combo_width = ImGui::CalcTextSize(m_SelectedFilter.title.c_str()).x + ImGui::GetFrameHeight() + ImGui::GetStyle().ItemInnerSpacing.x;
1687 return ImMax(combo_width, FILTER_COMBO_MIN_WIDTH);
1688#else
1689 return FILTER_COMBO_MIN_WIDTH;
1690#endif
1691}
1692
1693bool IGFD::FilterManager::DrawFilterComboBox(FileDialogInternal& vFileDialogInternal) {
1694 if (!dLGFilters.empty()) {

Callers 1

m_DrawFooterMethod · 0.80

Calls 2

ImMaxFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected