| 4213 | } |
| 4214 | |
| 4215 | void 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 | |
| 4226 | void IGFD::FileDialog::m_BeginFileColorIconStyle(std::shared_ptr<FileInfos> vFileInfos, bool& vOutShowColor, std::string& vOutStr, ImFont** vOutFont) { |
| 4227 | vOutStr.clear(); |