You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a82f66a
Browse filesBrowse the repository at this point in the historyBrowse files
// - Not well tested yet. Please report any incorrect cursor movement, selection behavior etc. bug to https://github.com/ocornut/imgui/issues/3237.
1021
+
// - With our current design it is _much_ slower than a regular text field. Editing a <50K buffer will generally be ok, but editing a 1MB buffer will waste meaningful amount of CPU.
1022
+
// We are likely to not make the feature public until this is fixed (which requires bigger changes to InputText will be be generally desirable for this and other features)
1023
+
// - Wrapping of long words/sections (e.g. words that are larger than available width) is currently visually not pleasing.
1024
+
// - Vertical scrollbar is currently always visible.
1025
+
ImGuiInputTextFlags_WordWrap = 1 << 24, // InputTextMultine(): wrap lines that are too long. (Ref #3237, #952, #1062)
1026
+
1018
1027
// [Internal]
1019
1028
ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline()
1020
1029
ImGuiInputTextFlags_MergedItem = 1 << 27, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match.
int BufCapacity; // end-user buffer capacity (include zero terminator)
1236
1245
ImVec2 Scroll; // horizontal offset (managed manually) + vertical scrolling (pulled from child window's own Scroll.y)
1237
1246
int LineCount; // last line count (solely for debugging)
1247
+
float WrapWidth; // word-wrapping width
1238
1248
float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately
1239
1249
bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!)
1240
1250
bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection
1241
1251
bool Edited; // edited this frame
1242
1252
bool WantReloadUserBuf; // force a reload of user buf so it may be modified externally. may be automatic in future version.
1253
+
ImS8 LastMoveDirectionLR; // ImGuiDir_Left or ImGuiDir_Right. track last movement direction so when cursor cross over a word-wrapping boundaries we can display it on either line depending on last move.s
0 commit comments