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
2544 2545 2546 |
# File 'lib/imgui.rb', line 2544 def self.create() return ImGuiTextBuffer.new(ImGui::ImGuiTextBuffer_ImGuiTextBuffer()) end |
Instance Method Details
#append(str, str_end = nil) ⇒ Object
2548 2549 2550 |
# File 'lib/imgui.rb', line 2548 def append(str, str_end = nil) ImGui::ImGuiTextBuffer_append(self, str, str_end) end |
#appendf(fmt, *varargs) ⇒ Object
2552 2553 2554 |
# File 'lib/imgui.rb', line 2552 def appendf(fmt, *varargs) ImGui::ImGuiTextBuffer_appendf(self, fmt, *varargs) end |
#begin ⇒ Object
2556 2557 2558 |
# File 'lib/imgui.rb', line 2556 def begin() ImGui::ImGuiTextBuffer_begin(self) end |
#c_str ⇒ Object
2560 2561 2562 |
# File 'lib/imgui.rb', line 2560 def c_str() ImGui::ImGuiTextBuffer_c_str(self) end |
#clear ⇒ Object
2564 2565 2566 |
# File 'lib/imgui.rb', line 2564 def clear() ImGui::ImGuiTextBuffer_clear(self) end |
#destroy ⇒ Object
2568 2569 2570 |
# File 'lib/imgui.rb', line 2568 def destroy() ImGui::ImGuiTextBuffer_destroy(self) end |
#empty ⇒ Object
2572 2573 2574 |
# File 'lib/imgui.rb', line 2572 def empty() ImGui::ImGuiTextBuffer_empty(self) end |
#end ⇒ Object
2576 2577 2578 |
# File 'lib/imgui.rb', line 2576 def end() ImGui::ImGuiTextBuffer_end(self) end |
#reserve(capacity) ⇒ Object
2580 2581 2582 |
# File 'lib/imgui.rb', line 2580 def reserve(capacity) ImGui::ImGuiTextBuffer_reserve(self, capacity) end |
#size ⇒ Object
2584 2585 2586 |
# File 'lib/imgui.rb', line 2584 def size() ImGui::ImGuiTextBuffer_size(self) end |