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



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

#beginObject



2679
2680
2681
# File 'lib/imgui.rb', line 2679

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

#c_strObject



2683
2684
2685
# File 'lib/imgui.rb', line 2683

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

#clearObject



2687
2688
2689
# File 'lib/imgui.rb', line 2687

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

#destroyObject



2691
2692
2693
# File 'lib/imgui.rb', line 2691

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

#emptyObject



2695
2696
2697
# File 'lib/imgui.rb', line 2695

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

#endObject



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

#sizeObject



2707
2708
2709
# File 'lib/imgui.rb', line 2707

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