Class: ImGuiTextBuffer

Inherits:
FFI::Struct
  • Object
show all
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

Class Method Details

.createObject



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

#beginObject



2673
2674
2675
# File 'lib/imgui.rb', line 2673

def begin()
  ImGui::ImGuiTextBuffer_begin(self)
end

#c_strObject



2677
2678
2679
# File 'lib/imgui.rb', line 2677

def c_str()
  ImGui::ImGuiTextBuffer_c_str(self)
end

#clearObject



2681
2682
2683
# File 'lib/imgui.rb', line 2681

def clear()
  ImGui::ImGuiTextBuffer_clear(self)
end

#destroyObject



2685
2686
2687
# File 'lib/imgui.rb', line 2685

def destroy()
  ImGui::ImGuiTextBuffer_destroy(self)
end

#emptyObject



2689
2690
2691
# File 'lib/imgui.rb', line 2689

def empty()
  ImGui::ImGuiTextBuffer_empty(self)
end

#endObject



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

#sizeObject



2701
2702
2703
# File 'lib/imgui.rb', line 2701

def size()
  ImGui::ImGuiTextBuffer_size(self)
end