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

Method m_Selectable

ImGuiFileDialog.cpp:4154–4167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4152}
4153
4154bool IGFD::FileDialog::m_Selectable(int vRowIdx, const char* vLabel, bool vSelected, ImGuiSelectableFlags vFlags, const ImVec2& vSizeArg) {
4155 bool res = false;
4156#ifdef USE_EXPLORATION_BY_KEYS
4157 bool flashed = m_BeginFlashItem((size_t)vRowIdx);
4158 res = m_FlashableSelectable(vLabel, vSelected, vFlags, flashed, vSizeArg);
4159 if (flashed) {
4160 m_EndFlashItem();
4161 }
4162#else // USE_EXPLORATION_BY_KEYS
4163 (void)vRowIdx; // remove a warnings for unused var
4164 res = ImGui::Selectable(vLabel, vSelected, vFlags, vSizeArg);
4165#endif // USE_EXPLORATION_BY_KEYS
4166 return res;
4167}
4168
4169void IGFD::FileDialog::m_SelectableItem(int vRowIdx, std::shared_ptr<FileInfos> vInfos, bool vSelected, const char* vFmt, ...) {
4170 if (!vInfos.use_count()) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected