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
2018 2019 2020 |
# File 'lib/imgui.rb', line 2018 def self.create() return ImFontGlyphRangesBuilder.new(ImGui::ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder()) end |
Instance Method Details
#AddChar(c) ⇒ Object
1994 1995 1996 |
# File 'lib/imgui.rb', line 1994 def AddChar(c) ImGui::ImFontGlyphRangesBuilder_AddChar(self, c) end |
#AddRanges(ranges) ⇒ Object
1998 1999 2000 |
# File 'lib/imgui.rb', line 1998 def AddRanges(ranges) ImGui::ImFontGlyphRangesBuilder_AddRanges(self, ranges) end |
#AddText(text, text_end = nil) ⇒ Object
2002 2003 2004 |
# File 'lib/imgui.rb', line 2002 def AddText(text, text_end = nil) ImGui::ImFontGlyphRangesBuilder_AddText(self, text, text_end) end |
#BuildRanges(out_ranges) ⇒ Object
2006 2007 2008 |
# File 'lib/imgui.rb', line 2006 def BuildRanges(out_ranges) ImGui::ImFontGlyphRangesBuilder_BuildRanges(self, out_ranges) end |
#Clear ⇒ Object
2010 2011 2012 |
# File 'lib/imgui.rb', line 2010 def Clear() ImGui::ImFontGlyphRangesBuilder_Clear(self) end |
#destroy ⇒ Object
2026 2027 2028 |
# File 'lib/imgui.rb', line 2026 def destroy() ImGui::ImFontGlyphRangesBuilder_destroy(self) end |
#GetBit(n) ⇒ Object
2014 2015 2016 |
# File 'lib/imgui.rb', line 2014 def GetBit(n) ImGui::ImFontGlyphRangesBuilder_GetBit(self, n) end |
#SetBit(n) ⇒ Object
2022 2023 2024 |
# File 'lib/imgui.rb', line 2022 def SetBit(n) ImGui::ImFontGlyphRangesBuilder_SetBit(self, n) end |