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

Method m_DisplayFileInfosTooltip

ImGuiFileDialog.cpp:4215–4224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4213}
4214
4215void IGFD::FileDialog::m_DisplayFileInfosTooltip(const int32_t& vRowIdx, const int32_t& vColumnIdx, std::shared_ptr<FileInfos> vFileInfos) {
4216 // IsItemHovered is not sufficient since file size have two calls to Text
4217 if ((ImGui::TableGetHoveredColumn() == vColumnIdx) && // column hovered
4218 (ImGui::TableGetHoveredRow() == (vRowIdx + 1)) && // row hovered
4219 (vFileInfos != nullptr) && // fileinfo not null
4220 (vFileInfos->tooltipColumn == vColumnIdx) && // good tooltip column
4221 (!vFileInfos->tooltipMessage.empty())) { // tooltip not empty
4222 ImGui::SetTooltip("%s", vFileInfos->tooltipMessage.c_str());
4223 }
4224}
4225
4226void IGFD::FileDialog::m_BeginFileColorIconStyle(std::shared_ptr<FileInfos> vFileInfos, bool& vOutShowColor, std::string& vOutStr, ImFont** vOutFont) {
4227 vOutStr.clear();

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected