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



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

#beginObject



2556
2557
2558
# File 'lib/imgui.rb', line 2556

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

#c_strObject



2560
2561
2562
# File 'lib/imgui.rb', line 2560

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

#clearObject



2564
2565
2566
# File 'lib/imgui.rb', line 2564

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

#destroyObject



2568
2569
2570
# File 'lib/imgui.rb', line 2568

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

#emptyObject



2572
2573
2574
# File 'lib/imgui.rb', line 2572

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

#endObject



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

#sizeObject



2584
2585
2586
# File 'lib/imgui.rb', line 2584

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