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
2667 2668 2669 |
# File 'lib/imgui.rb', line 2667 def self.create() return ImGuiTextBuffer.new(ImGui::ImGuiTextBuffer_ImGuiTextBuffer()) end |
Instance Method Details
#append(str, str_end = nil) ⇒ Object
2671 2672 2673 |
# File 'lib/imgui.rb', line 2671 def append(str, str_end = nil) ImGui::ImGuiTextBuffer_append(self, str, str_end) end |
#appendf(fmt, *varargs) ⇒ Object
2675 2676 2677 |
# File 'lib/imgui.rb', line 2675 def appendf(fmt, *varargs) ImGui::ImGuiTextBuffer_appendf(self, fmt, *varargs) end |
#begin ⇒ Object
2679 2680 2681 |
# File 'lib/imgui.rb', line 2679 def begin() ImGui::ImGuiTextBuffer_begin(self) end |
#c_str ⇒ Object
2683 2684 2685 |
# File 'lib/imgui.rb', line 2683 def c_str() ImGui::ImGuiTextBuffer_c_str(self) end |
#clear ⇒ Object
2687 2688 2689 |
# File 'lib/imgui.rb', line 2687 def clear() ImGui::ImGuiTextBuffer_clear(self) end |
#destroy ⇒ Object
2691 2692 2693 |
# File 'lib/imgui.rb', line 2691 def destroy() ImGui::ImGuiTextBuffer_destroy(self) end |
#empty ⇒ Object
2695 2696 2697 |
# File 'lib/imgui.rb', line 2695 def empty() ImGui::ImGuiTextBuffer_empty(self) end |
#end ⇒ Object
2699 2700 2701 |
# File 'lib/imgui.rb', line 2699 def end() ImGui::ImGuiTextBuffer_end(self) end |
#reserve(capacity) ⇒ Object
2703 2704 2705 |
# File 'lib/imgui.rb', line 2703 def reserve(capacity) ImGui::ImGuiTextBuffer_reserve(self, capacity) end |
#size ⇒ Object
2707 2708 2709 |
# File 'lib/imgui.rb', line 2707 def size() ImGui::ImGuiTextBuffer_size(self) end |