Class: ImFontGlyphRangesBuilder

Inherits:
FFI::Struct
  • Object
show all
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

Class Method Details

.createObject



2023
2024
2025
# File 'lib/imgui.rb', line 2023

def self.create()
  return ImFontGlyphRangesBuilder.new(ImGui::ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder())
end

Instance Method Details

#AddChar(c) ⇒ Object



1999
2000
2001
# File 'lib/imgui.rb', line 1999

def AddChar(c)
  ImGui::ImFontGlyphRangesBuilder_AddChar(self, c)
end

#AddRanges(ranges) ⇒ Object



2003
2004
2005
# File 'lib/imgui.rb', line 2003

def AddRanges(ranges)
  ImGui::ImFontGlyphRangesBuilder_AddRanges(self, ranges)
end

#AddText(text, text_end = nil) ⇒ Object



2007
2008
2009
# File 'lib/imgui.rb', line 2007

def AddText(text, text_end = nil)
  ImGui::ImFontGlyphRangesBuilder_AddText(self, text, text_end)
end

#BuildRanges(out_ranges) ⇒ Object



2011
2012
2013
# File 'lib/imgui.rb', line 2011

def BuildRanges(out_ranges)
  ImGui::ImFontGlyphRangesBuilder_BuildRanges(self, out_ranges)
end

#ClearObject



2015
2016
2017
# File 'lib/imgui.rb', line 2015

def Clear()
  ImGui::ImFontGlyphRangesBuilder_Clear(self)
end

#destroyObject



2031
2032
2033
# File 'lib/imgui.rb', line 2031

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

#GetBit(n) ⇒ Object



2019
2020
2021
# File 'lib/imgui.rb', line 2019

def GetBit(n)
  ImGui::ImFontGlyphRangesBuilder_GetBit(self, n)
end

#SetBit(n) ⇒ Object



2027
2028
2029
# File 'lib/imgui.rb', line 2027

def SetBit(n)
  ImGui::ImFontGlyphRangesBuilder_SetBit(self, n)
end