ocornut
1674fe96ff
InputText: amends: add stb_textedit_text() api. ( #7925 )
It seems sensible to push this change in stb_textedit repo eventually.
2 months ago
ocornut
d1b7817959
InputText: amends: renames, coding style. ( #7925 )
2 months ago
alektron
abd07f6d30
InputText: added native support for UTF-8 text editing and god rid of the wchar buffer. ( #7925 )
WIP (requires subsequent commits for fixes)
2 months ago
ocornut
15cb7d61f9
InputText: moved imstb_textedit.h include to imgui_widgets.cpp
2 months ago
Hubert Maier
07dbcf1f70
Fixed typos. ( #7593 )
6 months ago
ocornut
61b8197942
Misc: Renamed some defines in imstb_textedit.h to avoid conflicts when using unity/jumbo builds.
Bitting the bullet, as we rarely update this (and it is rarely updated) and it we may replace it anyhow.
12 months ago
ocornut
d8ef864b02
InputTextMultiline: Fixed a crash pressing Down on last empty line of a multiline buffer. ( #6783 , #6000 )
Amend 57a5b73a4c
1 year ago
ocornut
57a5b73a4c
InputText: fixed cursor navigation when pressing Up Arrow on the last character of a multiline buffer which doesn't end with a carriage return. ( #6000 )
Simplify stb_textedit_find_charpos(). Leaving that to simmer for a while before attempting an upstream PR.
2 years ago
ocornut
de451d4474
Updated stb_textedit.h from 1.13 to 1.14. ( #5075 )
(Our pageup/pagedown PR was merged, so this is essentially a no-op)
3 years ago
ocornut
d9b606672a
InputText: Fix handling of paste failure (buffer full) which in some cases could corrupt the undo stack. ( #4038 )
3 years ago
ocornut
327a5d8253
Fix warning + apply trailing whitespaces in stb_ libs (as applied on nothings/stb on 2020/02/02, facilitating further diffs)
3 years ago
Louis Schnellbach
ec945f44b5
InputText: Added support for Page Up/Down in InputTextMultiline. ( #3430 )
+ fix stb_textedit.h to build with C language (amend fbf70070
)
4 years ago
Louis Schnellbach
fbf70070bb
InputText: Fixed minor inconsistency when pressing Down on the last line when it doesn't have a carriage return (it used to move to the end of the line)
+ fixed two of our typos in stb_textedit.h
4 years ago
omar
23c1ff4907
Removed redirecting functions/enums names that were marked obsolete in 1.52 (October 2017).
- Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed
- IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows)
- AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding();
- SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f)
- ImFont::Glyph -> use ImFontGlyph
If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out the new names or equivalent features, or see how they were implemented until 1.73.
5 years ago
omar
539f69b950
Updated STB libraries to latest (drift has been reduced with nothings/stb as most of our changes were merged). Using [DEAR IMGUI] markers when changed.
6 years ago
omar
c59611a3b3
InputText: Fixed redo buffer exhaustion handling (rare) which could corrupt the undo character buffer. ( #2333 )
6 years ago
omar
c3c2cd1e82
Fix various XCode and PVS-Studio static analyzer warnings ( #2309 )
6 years ago
omar
5a679a45cc
Renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. ( #1718 , #2036 )
If you were conveniently using the imgui copy of those STB headers in your project, you will have to update your include paths.
The reason for this change is to avoid conflicts for projects that may also be importing their own copy of the STB libraries. Note that imgui's copy of stb_textedit.h is modified.
6 years ago
omar
21f553fa55
stb_textedit, InputText(): Fixed Undo after pasting large amount of text (Redo will still fail when undo buffers are exhausted, but text won't be corrupted).
See issue 620 in nothings/stb/
7 years ago
omar
67b139ccae
Updated stb_textedit 1.09 + patches --> 1.12 + minor patches. ( #715 )
7 years ago
omar
787a475650
Skip missing font glyphs to 1) avoid using space for missing glyphs and 2) allow merging fonts with overlapping ranges. Demo: Fixed displaying ? instead of greyed out empty box. ( #1671 , #1703 )
7 years ago
omar
1e116e6c17
Removed need for -Wnocast-qual on modern Clang/Xcode as a token of good behavior. Unfortunately the old stb_ decompress code is a little const clunky. + warning fix in stb_textedit which is already in master afaik.
7 years ago
ocornut
b3790e7549
InputText: Fixed pressing home key on last character when it isn't a trailing \n ( #588 , #815 )
8 years ago
ocornut
7252d93dcd
stb_textedit.h Merged from master 1.9 (merged bits from #473 )
8 years ago
ocornut
c0f77f12ea
InputText(): Fixed state corruption/crash bug in stb_textedit redo logic when exhausting undo char buffer ( #715 #681 )
8 years ago
ocornut
0f36ec9cb9
Fixed a crash bug in stb_textedit.h ( #681 )
9 years ago
ocornut
aeaf5ccebb
stb_textedit.h: proposal for upstream PR to allow custom move-left/move-right handlers (following #473 )
9 years ago
ocornut
c3376cd45c
stb_textedit.h Local warning fixes
9 years ago
ocornut
e7b95646b9
stb_textedit.h updated to 1.8 (our two main changes were merged now)
9 years ago
ocornut
21f0d64a74
stb_rect_pack.h update to 0.08
9 years ago
ocornut
6c7f8efe1e
InputText: update mouse drag on mouse move only & key input reposition selection bounds (better fix for #429 )
9 years ago
ocornut
f7f71043ca
InputText: stb_textedit.h tentative fix for End key on multi-line fields ( #275 )
9 years ago
ocornut
a31e44b99a
Fixed Clang -Weverything warnings + TODO list entries
10 years ago
ocornut
05f0993616
stb_textedit 1.4 fix signed/unsigned warnings
10 years ago
ocornut
dbd777232a
Initial release
10 years ago