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



1949
1950
1951
# File 'lib/imgui.rb', line 1949

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

Instance Method Details

#AddChar(c) ⇒ Object



1925
1926
1927
# File 'lib/imgui.rb', line 1925

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

#AddRanges(ranges) ⇒ Object



1929
1930
1931
# File 'lib/imgui.rb', line 1929

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

#AddText(text, text_end = nil) ⇒ Object



1933
1934
1935
# File 'lib/imgui.rb', line 1933

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

#BuildRanges(out_ranges) ⇒ Object



1937
1938
1939
# File 'lib/imgui.rb', line 1937

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

#ClearObject



1941
1942
1943
# File 'lib/imgui.rb', line 1941

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

#destroyObject



1957
1958
1959
# File 'lib/imgui.rb', line 1957

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

#GetBit(n) ⇒ Object



1945
1946
1947
# File 'lib/imgui.rb', line 1945

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

#SetBit(n) ⇒ Object



1953
1954
1955
# File 'lib/imgui.rb', line 1953

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