struct ImGuiTextBuffer

Overview

#include <imgui.h>

struct ImGuiTextBuffer
{
    // fields

    ImVector<char> Buf;
    static IMGUI_API char EmptyString[1] = { 0 };

    // methods

    char operator [] (int i) const;
    const char* begin() const;
    const char* end() const;
    int size() const;
    bool empty() const;
    void clear();
    void resize(int size);
    void reserve(int capacity);
    const char* c_str() const;

    IMGUI_API void append(
        const char* str,
        const char* str_end = NULL
        );

    IMGUI_API void appendf(
        const char* fmt,
        ...
        );

    IMGUI_API void appendfv(
        const char* fmt,
        va_list args
        );
};