MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / GetFilterComboBoxWidth

Method GetFilterComboBoxWidth

ImGuiFileDialog.cpp:1622–1629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1620}
1621
1622float IGFD::FilterManager::GetFilterComboBoxWidth() const {
1623#if FILTER_COMBO_AUTO_SIZE
1624 const auto& combo_width = ImGui::CalcTextSize(m_SelectedFilter.title.c_str()).x + ImGui::GetFrameHeight() + ImGui::GetStyle().ItemInnerSpacing.x;
1625 return ImMax(combo_width, FILTER_COMBO_MIN_WIDTH);
1626#else
1627 return FILTER_COMBO_MIN_WIDTH;
1628#endif
1629}
1630
1631bool IGFD::FilterManager::DrawFilterComboBox(FileDialogInternal& vFileDialogInternal) {
1632 if (!dLGFilters.empty()) {

Callers 1

m_DrawFooterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected