Class: ImGuiTextBuffer
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImGuiTextBuffer
- Defined in:
- lib/imgui.rb
Overview
Helper: Growable text buffer for logging/accumulating text (this could be called ‘ImGuiTextBuilder’ / ‘ImGuiStringBuilder’)
Class Method Summary collapse
Instance Method Summary collapse
- #append(str, str_end = nil) ⇒ Object
- #appendf(fmt, *varargs) ⇒ Object
- #begin ⇒ Object
- #c_str ⇒ Object
- #clear ⇒ Object
- #destroy ⇒ Object
- #empty ⇒ Object
- #end ⇒ Object
- #reserve(capacity) ⇒ Object
- #size ⇒ Object
Class Method Details
.create ⇒ Object
2298 2299 2300 |
# File 'lib/imgui.rb', line 2298 def self.create() return ImGuiTextBuffer.new(ImGui::ImGuiTextBuffer_ImGuiTextBuffer()) end |
Instance Method Details
#append(str, str_end = nil) ⇒ Object
2302 2303 2304 |
# File 'lib/imgui.rb', line 2302 def append(str, str_end = nil) ImGui::ImGuiTextBuffer_append(self, str, str_end) end |
#appendf(fmt, *varargs) ⇒ Object
2306 2307 2308 |
# File 'lib/imgui.rb', line 2306 def appendf(fmt, *varargs) ImGui::ImGuiTextBuffer_appendf(self, fmt, *varargs) end |
#begin ⇒ Object
2310 2311 2312 |
# File 'lib/imgui.rb', line 2310 def begin() ImGui::ImGuiTextBuffer_begin(self) end |
#c_str ⇒ Object
2314 2315 2316 |
# File 'lib/imgui.rb', line 2314 def c_str() ImGui::ImGuiTextBuffer_c_str(self) end |
#clear ⇒ Object
2318 2319 2320 |
# File 'lib/imgui.rb', line 2318 def clear() ImGui::ImGuiTextBuffer_clear(self) end |
#destroy ⇒ Object
2322 2323 2324 |
# File 'lib/imgui.rb', line 2322 def destroy() ImGui::ImGuiTextBuffer_destroy(self) end |
#empty ⇒ Object
2326 2327 2328 |
# File 'lib/imgui.rb', line 2326 def empty() ImGui::ImGuiTextBuffer_empty(self) end |
#end ⇒ Object
2330 2331 2332 |
# File 'lib/imgui.rb', line 2330 def end() ImGui::ImGuiTextBuffer_end(self) end |
#reserve(capacity) ⇒ Object
2334 2335 2336 |
# File 'lib/imgui.rb', line 2334 def reserve(capacity) ImGui::ImGuiTextBuffer_reserve(self, capacity) end |
#size ⇒ Object
2338 2339 2340 |
# File 'lib/imgui.rb', line 2338 def size() ImGui::ImGuiTextBuffer_size(self) end |