BLF: Utility to Wrap a String into Multiple Lines #118436

Merged
Harley Acheson merged 7 commits from Harley/blender:WrapString into main 2024-02-21 01:19:14 +01:00

7 Commits

Author SHA1 Message Date
Harley Acheson 202659e9d3 unused argument, assignment type warning
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
2024-02-20 11:55:29 -08:00
Harley Acheson f77ac43065 Unnecessary includes
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
2024-02-20 07:54:09 -08:00
Harley Acheson f352a27829 Using blender::StringRef
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
2024-02-20 07:35:32 -08:00
Harley Acheson 402fa5229f Merge branch 'main' of projects.blender.org:blender/blender into WrapString 2024-02-19 18:25:39 -08:00
Harley Acheson e6f910b9ca blender::StringRef and blender::Vector 2024-02-19 10:48:25 -08:00
Harley Acheson a4be7d2c12 Merge branch 'main' of projects.blender.org:blender/blender into WrapString 2024-02-19 09:45:13 -08:00
Harley Acheson 7538763a23 UI: Generic String Wrapping
Given a string, font id, and width, return a string vector with the string
wrapped to that width.

---

We currently only have string wrapping that occurs at the time of text output. But it can be useful to know where a string would break without printing it. For wrapping of uiBut labels, multi-line text input, etc.
2024-02-18 11:52:16 -08:00