| 26 | } |
| 27 | |
| 28 | const char* getTextThatFits(const char* p, float width) { |
| 29 | const char* result = p + 1; |
| 30 | while (ImGui::CalcTextSize(p, result, false, 9999.0f).x<width) { |
| 31 | result++; |
| 32 | } |
| 33 | result--; |
| 34 | return result; |
| 35 | } |
| 36 | |
| 37 | void drawListViewItem(const ListViewItem& item) { |
| 38 | float width = ImGui::GetColumnWidth()-GlobalSettings::scaleFloatUI(4.0f); |