struct ImGuiInputTextState

Overview

#include <imgui_internal.h>

struct ImGuiInputTextState
{
    // fields

    ImGuiContext* Ctx;
    ImStbTexteditState* Stb;
    ImGuiInputTextFlags Flags;
    ImGuiID ID;
    int TextLen;
    const char* TextSrc;
    ImVector<char> TextA;
    ImVector<char> TextToRevertTo;
    ImVector<char> CallbackTextBackup;
    int BufCapacity;
    ImVec2 Scroll;
    int LineCount;
    float WrapWidth;
    float CursorAnim;
    bool CursorFollow;
    bool CursorCenterY;
    bool SelectedAllMouseLock;
    bool Edited;
    bool WantReloadUserBuf;
    ImS8 LastMoveDirectionLR;
    int ReloadSelectionStart;
    int ReloadSelectionEnd;

    // methods

    void ClearText();
    void ClearFreeMemory();
    void OnKeyPressed(int key);
    void OnCharPressed(unsigned int c);
    float GetPreferredOffsetX() const;
    void CursorAnimReset();
    void CursorClamp();
    bool HasSelection() const;
    void ClearSelection();
    int GetCursorPos() const;
    int GetSelectionStart() const;
    int GetSelectionEnd() const;

    void SetSelection(
        int start,
        int end
        );

    void SelectAll();
    void ReloadUserBufAndSelectAll();
    void ReloadUserBufAndKeepSelection();
    void ReloadUserBufAndMoveToEnd();
};