mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 04:17:00 +00:00
ImGuiTextBuffer: added c_str() helper.
This commit is contained in:
parent
69678d1ed2
commit
7508d30b83
1
imgui.h
1
imgui.h
@ -887,6 +887,7 @@ struct ImGuiTextBuffer
|
|||||||
int size() const { return Buf.Size - 1; }
|
int size() const { return Buf.Size - 1; }
|
||||||
bool empty() { return Buf.Size >= 2; }
|
bool empty() { return Buf.Size >= 2; }
|
||||||
void clear() { Buf.clear(); Buf.push_back(0); }
|
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 append(const char* fmt, ...) IM_PRINTFARGS(2);
|
||||||
IMGUI_API void appendv(const char* fmt, va_list args);
|
IMGUI_API void appendv(const char* fmt, va_list args);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user