Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : custom separators for TextWrapped #3002

Open
BluTree opened this issue Jan 24, 2020 · 0 comments
Open

Feature request : custom separators for TextWrapped #3002

BluTree opened this issue Jan 24, 2020 · 0 comments

Comments

@BluTree
Copy link

BluTree commented Jan 24, 2020

Version/Branch of Dear ImGui:

Version: 1.75 WIP
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Operating System: Windows 10

My Issue/Question:

It would be useful to set custom separators when calling TextWrapped. For example, set separators like / or \ manually when the text is a filename, etc...

Screenshots/Video

Capture
In this case, I would like to have the text wrapped with the / and \ and not by the spaces in the folder name

Possible implementation:

ImGui::Begin("Example");
const char* custom_separators = "/\";
ImGui::TextWrappedEx(custom_separators, "this/is/a/long/filename/with spaces/");
ImGui::End();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants