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



2298
2299
2300
# File 'lib/imgui.rb', line 2298

def self.create()
  return ImGuiTextBuffer.new(ImGui::ImGuiTextBuffer_ImGuiTextBuffer())
end

Instance Method Details

#append(str, str_end = nil) ⇒ Object



2302
2303
2304
# File 'lib/imgui.rb', line 2302

def append(str, str_end = nil)
  ImGui::ImGuiTextBuffer_append(self, str, str_end)
end

#appendf(fmt, *varargs) ⇒ Object



2306
2307
2308
# File 'lib/imgui.rb', line 2306

def appendf(fmt, *varargs)
  ImGui::ImGuiTextBuffer_appendf(self, fmt, *varargs)
end

#beginObject



2310
2311
2312
# File 'lib/imgui.rb', line 2310

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

#c_strObject



2314
2315
2316
# File 'lib/imgui.rb', line 2314

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

#clearObject



2318
2319
2320
# File 'lib/imgui.rb', line 2318

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

#destroyObject



2322
2323
2324
# File 'lib/imgui.rb', line 2322

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

#emptyObject



2326
2327
2328
# File 'lib/imgui.rb', line 2326

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

#endObject



2330
2331
2332
# File 'lib/imgui.rb', line 2330

def end()
  ImGui::ImGuiTextBuffer_end(self)
end

#reserve(capacity) ⇒ Object



2334
2335
2336
# File 'lib/imgui.rb', line 2334

def reserve(capacity)
  ImGui::ImGuiTextBuffer_reserve(self, capacity)
end

#sizeObject



2338
2339
2340
# File 'lib/imgui.rb', line 2338

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