ImGuiTextBuffer: added c_str() helper.

This commit is contained in:
ocornut 2015-10-04 11:22:17 +02:00
parent 69678d1ed2
commit 7508d30b83

View File

@ -887,6 +887,7 @@ struct ImGuiTextBuffer
int size() const { return Buf.Size - 1; }
bool empty() { return Buf.Size >= 2; }
void clear() { Buf.clear(); Buf.push_back(0); }
const char* c_str() const { return Buf.Data; }
IMGUI_API void append(const char* fmt, ...) IM_PRINTFARGS(2);
IMGUI_API void appendv(const char* fmt, va_list args);
};