Class: ImFontGlyphRangesBuilder
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImFontGlyphRangesBuilder
- Defined in:
- lib/imgui.rb
Overview
Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). This is essentially a tightly packed of vector of 64k booleans = 8KB storage.
Class Method Summary collapse
Instance Method Summary collapse
- #AddChar(c) ⇒ Object
- #AddRanges(ranges) ⇒ Object
- #AddText(text, text_end = nil) ⇒ Object
- #BuildRanges(out_ranges) ⇒ Object
- #Clear ⇒ Object
- #destroy ⇒ Object
- #GetBit(n) ⇒ Object
- #SetBit(n) ⇒ Object
Class Method Details
.create ⇒ Object
1749 1750 1751 |
# File 'lib/imgui.rb', line 1749 def self.create() return ImFontGlyphRangesBuilder.new(ImGui::ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder()) end |
Instance Method Details
#AddChar(c) ⇒ Object
1725 1726 1727 |
# File 'lib/imgui.rb', line 1725 def AddChar(c) ImGui::ImFontGlyphRangesBuilder_AddChar(self, c) end |
#AddRanges(ranges) ⇒ Object
1729 1730 1731 |
# File 'lib/imgui.rb', line 1729 def AddRanges(ranges) ImGui::ImFontGlyphRangesBuilder_AddRanges(self, ranges) end |
#AddText(text, text_end = nil) ⇒ Object
1733 1734 1735 |
# File 'lib/imgui.rb', line 1733 def AddText(text, text_end = nil) ImGui::ImFontGlyphRangesBuilder_AddText(self, text, text_end) end |
#BuildRanges(out_ranges) ⇒ Object
1737 1738 1739 |
# File 'lib/imgui.rb', line 1737 def BuildRanges(out_ranges) ImGui::ImFontGlyphRangesBuilder_BuildRanges(self, out_ranges) end |
#Clear ⇒ Object
1741 1742 1743 |
# File 'lib/imgui.rb', line 1741 def Clear() ImGui::ImFontGlyphRangesBuilder_Clear(self) end |
#destroy ⇒ Object
1757 1758 1759 |
# File 'lib/imgui.rb', line 1757 def destroy() ImGui::ImFontGlyphRangesBuilder_destroy(self) end |
#GetBit(n) ⇒ Object
1745 1746 1747 |
# File 'lib/imgui.rb', line 1745 def GetBit(n) ImGui::ImFontGlyphRangesBuilder_GetBit(self, n) end |
#SetBit(n) ⇒ Object
1753 1754 1755 |
# File 'lib/imgui.rb', line 1753 def SetBit(n) ImGui::ImFontGlyphRangesBuilder_SetBit(self, n) end |