Comments (5)
Added in trunk.
- simple api TextWrapped()
- extended api PushTextWrapPos() / PushTextWrapPos()
Let me know if that works for you.
from imgui.
Will do that. It is useful if you want to display blurbs of text in a gui.
from imgui.
Nice! Any way I could help?
Idea's for extra flags:
- Wrap only words (no words cut in half, except for words larger than the window)
- Wrap sentences (prefer wrapping after dot(.) or comma(,))
from imgui.
I am still unsure how to expose the feature. I don't think it should be in by default on ImGui::Text() because that can be used for so many reason (detailed/intricate layouts). I am also hesitant to introduce new API because there's already variants (TextV, TextColored, etc.) and adding a new one would lead to combinatory.explosion.
a. Add a Push/Pop style setting
b. Add in-string tagging (convenient but rather weird)
c. Additionally I could still one function variant e.g TextWrapped() for common use, leaving the Push/Pop accessible for other cases. So there won't be a TextWrappedColored function, etc.
I think I'll do a+c
from imgui.
That's marvellous, thanks a lot!
from imgui.
Related Issues (20)
- Modifying what's in an ImGui::Input HOT 4
- How I can do something when a widget changed its data HOT 1
- Inconsistent result between AddImageRounded and AddImage
- how to zoom a picture hard edges HOT 2
- Docking DockBuilder with DockSpaceOverViewport
- Rendering result on ImGui::Image is wrong during resizing ImGuiViewport HOT 1
- Custom ini setting handler saves settings but does not load settings HOT 2
- How to handle key events properly. HOT 7
- "Hold SHIFT to enable Docking window" tooltip inherits `NextWindowData` HOT 1
- SDL3 backend text input does not work HOT 2
- How to create a very big table? HOT 1
- Standalone ImDrawList/ImDrawCmd/Low level renderer API HOT 2
- `TextWrapped` will cause `too-many-vertices` error for long single-line strings HOT 2
- How do I load custom fonts in memory? HOT 2
- PDIRECT3D11 HOT 1
- Is it possible to create non-square buttons? HOT 4
- Image canvas implementation HOT 15
- Unable to use Menu HOT 3
- Gallery: Post your screenshots / code here (PART 19) HOT 4
- Drag and Drop from Menubar HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.