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

Method m_rightAlignText

ImGuiFileDialog.cpp:4272–4280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4270}
4271
4272void IGFD::FileDialog::m_rightAlignText(const char* text, const char* maxWidthText) {
4273 const auto maxWidth = ImGui::CalcTextSize(maxWidthText).x;
4274 const auto actualWidth = ImGui::CalcTextSize(text).x;
4275 const auto spacing = maxWidth - actualWidth;
4276 if (spacing > 0.0f) {
4277 ImGui::SetCursorPosX(ImGui::GetCursorPosX() + spacing);
4278 }
4279 ImGui::TextUnformatted(text);
4280}
4281
4282void IGFD::FileDialog::m_DrawFileListView(ImVec2 vSize) {
4283 auto& fdi = m_FileDialogInternal.fileManager;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected