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(buffer, 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
2661 2662 2663 |
# File 'lib/imgui.rb', line 2661 def self.create() return ImGuiTextBuffer.new(ImGui::ImGuiTextBuffer_ImGuiTextBuffer()) end |
Instance Method Details
#append(str, str_end = nil) ⇒ Object
2665 2666 2667 |
# File 'lib/imgui.rb', line 2665 def append(str, str_end = nil) ImGui::ImGuiTextBuffer_append(self, str, str_end) end |
#appendf(buffer, fmt, *varargs) ⇒ Object
2669 2670 2671 |
# File 'lib/imgui.rb', line 2669 def appendf(buffer, fmt, *varargs) ImGui::ImGuiTextBuffer_appendf(buffer, fmt, *varargs) end |
#begin ⇒ Object
2673 2674 2675 |
# File 'lib/imgui.rb', line 2673 def begin() ImGui::ImGuiTextBuffer_begin(self) end |
#c_str ⇒ Object
2677 2678 2679 |
# File 'lib/imgui.rb', line 2677 def c_str() ImGui::ImGuiTextBuffer_c_str(self) end |
#clear ⇒ Object
2681 2682 2683 |
# File 'lib/imgui.rb', line 2681 def clear() ImGui::ImGuiTextBuffer_clear(self) end |
#destroy ⇒ Object
2685 2686 2687 |
# File 'lib/imgui.rb', line 2685 def destroy() ImGui::ImGuiTextBuffer_destroy(self) end |
#empty ⇒ Object
2689 2690 2691 |
# File 'lib/imgui.rb', line 2689 def empty() ImGui::ImGuiTextBuffer_empty(self) end |
#end ⇒ Object
2693 2694 2695 |
# File 'lib/imgui.rb', line 2693 def end() ImGui::ImGuiTextBuffer_end(self) end |
#reserve(capacity) ⇒ Object
2697 2698 2699 |
# File 'lib/imgui.rb', line 2697 def reserve(capacity) ImGui::ImGuiTextBuffer_reserve(self, capacity) end |
#size ⇒ Object
2701 2702 2703 |
# File 'lib/imgui.rb', line 2701 def size() ImGui::ImGuiTextBuffer_size(self) end |