Class: ImFont
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImFont
- Defined in:
- lib/imgui.rb
Instance Method Summary collapse
- #AddRemapChar(from_codepoint, to_codepoint) ⇒ Object
- #CalcTextSizeA(size, max_width, wrap_width, text_begin) ⇒ Object
- #CalcTextSizeAEx(size, max_width, wrap_width, text_begin, text_end = nil, out_remaining = nil) ⇒ Object
- #CalcWordWrapPosition(size, text, text_end, wrap_width) ⇒ Object
- #CalcWordWrapPositionA(scale, text, text_end, wrap_width) ⇒ Object
- #ClearOutputData ⇒ Object
- #GetDebugName ⇒ Object
- #GetFontBaked(font_size) ⇒ Object
- #GetFontBakedEx(font_size, density = -1.0)) ⇒ Object
- #IsGlyphInFont(c) ⇒ Object
- #IsGlyphRangeUnused(c_begin, c_last) ⇒ Object
- #IsLoaded ⇒ Object
- #RenderChar(draw_list, size, pos, col, c) ⇒ Object
- #RenderCharEx(draw_list, size, pos, col, c, cpu_fine_clip = nil) ⇒ Object
- #RenderText(draw_list, size, pos, col, clip_rect, text_begin, text_end, wrap_width = 0.0, flags = 0) ⇒ Object
Instance Method Details
#AddRemapChar(from_codepoint, to_codepoint) ⇒ Object
3276 3277 3278 |
# File 'lib/imgui.rb', line 3276 def AddRemapChar(from_codepoint, to_codepoint) ImGui::ImFont_AddRemapChar(self, from_codepoint, to_codepoint) end |
#CalcTextSizeA(size, max_width, wrap_width, text_begin) ⇒ Object
3244 3245 3246 |
# File 'lib/imgui.rb', line 3244 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
3248 3249 3250 |
# File 'lib/imgui.rb', line 3248 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
3252 3253 3254 |
# File 'lib/imgui.rb', line 3252 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
3268 3269 3270 |
# File 'lib/imgui.rb', line 3268 def CalcWordWrapPositionA(scale, text, text_end, wrap_width) ImGui::ImFont_CalcWordWrapPositionA(self, scale, text, text_end, wrap_width) end |
#ClearOutputData ⇒ Object
3272 3273 3274 |
# File 'lib/imgui.rb', line 3272 def ClearOutputData() ImGui::ImFont_ClearOutputData(self) end |
#GetDebugName ⇒ Object
3232 3233 3234 |
# File 'lib/imgui.rb', line 3232 def GetDebugName() ImGui::ImFont_GetDebugName(self) end |
#GetFontBaked(font_size) ⇒ Object
3236 3237 3238 |
# File 'lib/imgui.rb', line 3236 def GetFontBaked(font_size) ImGui::ImFont_GetFontBaked(self, font_size) end |
#GetFontBakedEx(font_size, density = -1.0)) ⇒ Object
3240 3241 3242 |
# File 'lib/imgui.rb', line 3240 def GetFontBakedEx(font_size, density = -1.0) ImGui::ImFont_GetFontBakedEx(self, font_size, density) end |
#IsGlyphInFont(c) ⇒ Object
3224 3225 3226 |
# File 'lib/imgui.rb', line 3224 def IsGlyphInFont(c) ImGui::ImFont_IsGlyphInFont(self, c) end |
#IsGlyphRangeUnused(c_begin, c_last) ⇒ Object
3280 3281 3282 |
# File 'lib/imgui.rb', line 3280 def IsGlyphRangeUnused(c_begin, c_last) ImGui::ImFont_IsGlyphRangeUnused(self, c_begin, c_last) end |
#IsLoaded ⇒ Object
3228 3229 3230 |
# File 'lib/imgui.rb', line 3228 def IsLoaded() ImGui::ImFont_IsLoaded(self) end |
#RenderChar(draw_list, size, pos, col, c) ⇒ Object
3256 3257 3258 |
# File 'lib/imgui.rb', line 3256 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
3260 3261 3262 |
# File 'lib/imgui.rb', line 3260 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
3264 3265 3266 |
# File 'lib/imgui.rb', line 3264 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 |