Class: ImFont

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/imgui.rb

Instance Method Summary collapse

Instance Method Details

#AddRemapChar(from_codepoint, to_codepoint) ⇒ Object



3294
3295
3296
# File 'lib/imgui.rb', line 3294

def AddRemapChar(from_codepoint, to_codepoint)
  ImGui::ImFont_AddRemapChar(self, from_codepoint, to_codepoint)
end

#CalcTextSizeA(size, max_width, wrap_width, text_begin) ⇒ Object



3262
3263
3264
# File 'lib/imgui.rb', line 3262

def CalcTextSizeA(size, max_width, wrap_width, text_begin)
  ImGui::ImFont_CalcTextSizeA(self, size, max_width, wrap_width, text_begin)
end

#CalcTextSizeAEx(size, max_width, wrap_width, text_begin, text_end = nil, out_remaining = nil) ⇒ Object



3266
3267
3268
# File 'lib/imgui.rb', line 3266

def CalcTextSizeAEx(size, max_width, wrap_width, text_begin, text_end = nil, out_remaining = nil)
  ImGui::ImFont_CalcTextSizeAEx(self, size, max_width, wrap_width, text_begin, text_end, out_remaining)
end

#CalcWordWrapPosition(size, text, text_end, wrap_width) ⇒ Object



3270
3271
3272
# File 'lib/imgui.rb', line 3270

def CalcWordWrapPosition(size, text, text_end, wrap_width)
  ImGui::ImFont_CalcWordWrapPosition(self, size, text, text_end, wrap_width)
end

#CalcWordWrapPositionA(scale, text, text_end, wrap_width) ⇒ Object



3286
3287
3288
# File 'lib/imgui.rb', line 3286

def CalcWordWrapPositionA(scale, text, text_end, wrap_width)
  ImGui::ImFont_CalcWordWrapPositionA(self, scale, text, text_end, wrap_width)
end

#ClearOutputDataObject



3290
3291
3292
# File 'lib/imgui.rb', line 3290

def ClearOutputData()
  ImGui::ImFont_ClearOutputData(self)
end

#GetDebugNameObject



3250
3251
3252
# File 'lib/imgui.rb', line 3250

def GetDebugName()
  ImGui::ImFont_GetDebugName(self)
end

#GetFontBaked(font_size) ⇒ Object



3254
3255
3256
# File 'lib/imgui.rb', line 3254

def GetFontBaked(font_size)
  ImGui::ImFont_GetFontBaked(self, font_size)
end

#GetFontBakedEx(font_size, density = -1.0)) ⇒ Object



3258
3259
3260
# File 'lib/imgui.rb', line 3258

def GetFontBakedEx(font_size, density = -1.0)
  ImGui::ImFont_GetFontBakedEx(self, font_size, density)
end

#IsGlyphInFont(c) ⇒ Object



3242
3243
3244
# File 'lib/imgui.rb', line 3242

def IsGlyphInFont(c)
  ImGui::ImFont_IsGlyphInFont(self, c)
end

#IsGlyphRangeUnused(c_begin, c_last) ⇒ Object



3298
3299
3300
# File 'lib/imgui.rb', line 3298

def IsGlyphRangeUnused(c_begin, c_last)
  ImGui::ImFont_IsGlyphRangeUnused(self, c_begin, c_last)
end

#IsLoadedObject



3246
3247
3248
# File 'lib/imgui.rb', line 3246

def IsLoaded()
  ImGui::ImFont_IsLoaded(self)
end

#RenderChar(draw_list, size, pos, col, c) ⇒ Object



3274
3275
3276
# File 'lib/imgui.rb', line 3274

def RenderChar(draw_list, size, pos, col, c)
  ImGui::ImFont_RenderChar(self, draw_list, size, pos, col, c)
end

#RenderCharEx(draw_list, size, pos, col, c, cpu_fine_clip = nil) ⇒ Object



3278
3279
3280
# File 'lib/imgui.rb', line 3278

def RenderCharEx(draw_list, size, pos, col, c, cpu_fine_clip = nil)
  ImGui::ImFont_RenderCharEx(self, draw_list, size, pos, col, c, cpu_fine_clip)
end

#RenderText(draw_list, size, pos, col, clip_rect, text_begin, text_end, wrap_width = 0.0, flags = 0) ⇒ Object



3282
3283
3284
# File 'lib/imgui.rb', line 3282

def RenderText(draw_list, size, pos, col, clip_rect, text_begin, text_end, wrap_width = 0.0, flags = 0)
  ImGui::ImFont_RenderText(self, draw_list, size, pos, col, clip_rect, text_begin, text_end, wrap_width, flags)
end