mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
ImGuITextBuffer: shallow tweak.
This commit is contained in:
parent
b770f3ffaf
commit
307ed78006
4
imgui.h
4
imgui.h
@ -865,8 +865,8 @@ struct ImGuiTextBuffer
|
|||||||
inline char operator[](int i) { return Buf.Data[i]; }
|
inline char operator[](int i) { return Buf.Data[i]; }
|
||||||
const char* begin() const { return &Buf.front(); }
|
const char* begin() const { return &Buf.front(); }
|
||||||
const char* end() const { return &Buf.back(); } // Buf is zero-terminated, so end() will point on the zero-terminator
|
const char* end() const { return &Buf.back(); } // Buf is zero-terminated, so end() will point on the zero-terminator
|
||||||
int size() const { return Buf.Size-1; }
|
int size() const { return Buf.Size - 1; }
|
||||||
bool empty() { return size() >= 1; }
|
bool empty() { return Buf.Size >= 2; }
|
||||||
void clear() { Buf.clear(); Buf.push_back(0); }
|
void clear() { Buf.clear(); Buf.push_back(0); }
|
||||||
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