Class: ImFontAtlas
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImFontAtlas
- Defined in:
- lib/imgui.rb
Instance Method Summary collapse
- #AddCustomRect(width, height, out_r = nil) ⇒ Object
- #AddCustomRectFontGlyph(font, codepoint, w, h, advance_x, offset = ImVec2.create(0,0)) ⇒ Object
- #AddCustomRectFontGlyphForSize(font, font_size, codepoint, w, h, advance_x, offset = ImVec2.create(0,0)) ⇒ Object
- #AddCustomRectRegular(w, h) ⇒ Object
- #AddFont(font_cfg) ⇒ Object
- #AddFontDefault(font_cfg = nil) ⇒ Object
- #AddFontDefaultBitmap(font_cfg = nil) ⇒ Object
- #AddFontDefaultVector(font_cfg = nil) ⇒ Object
- #AddFontFromFileTTF(filename, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
- #AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
- #AddFontFromMemoryCompressedTTF(compressed_font_data, compressed_font_data_size, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
- #AddFontFromMemoryTTF(font_data, font_data_size, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
- #Build ⇒ Object
- #CalcCustomRectUV(r, out_uv_min, out_uv_max) ⇒ Object
- #Clear ⇒ Object
- #ClearFonts ⇒ Object
- #ClearInputData ⇒ Object
- #ClearTexData ⇒ Object
- #CompactCache ⇒ Object
- #GetCustomRect(id, out_r) ⇒ Object
- #GetCustomRectByIndex(id) ⇒ Object
- #GetGlyphRangesChineseFull ⇒ Object
- #GetGlyphRangesChineseSimplifiedCommon ⇒ Object
- #GetGlyphRangesCyrillic ⇒ Object
- #GetGlyphRangesDefault ⇒ Object
- #GetGlyphRangesGreek ⇒ Object
- #GetGlyphRangesJapanese ⇒ Object
- #GetGlyphRangesKorean ⇒ Object
- #GetGlyphRangesThai ⇒ Object
- #GetGlyphRangesVietnamese ⇒ Object
- #GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ⇒ Object
- #GetTexDataAsRGBA32(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ⇒ Object
- #IsBuilt ⇒ Object
- #RemoveCustomRect(id) ⇒ Object
- #RemoveFont(font) ⇒ Object
- #SetFontLoader(font_loader) ⇒ Object
- #SetTexID(id) ⇒ Object
- #SetTexIDImTextureRef(id) ⇒ Object
Instance Method Details
#AddCustomRect(width, height, out_r = nil) ⇒ Object
2034 2035 2036 |
# File 'lib/imgui.rb', line 2034 def AddCustomRect(width, height, out_r = nil) ImGui::ImFontAtlas_AddCustomRect(self, width, height, out_r) end |
#AddCustomRectFontGlyph(font, codepoint, w, h, advance_x, offset = ImVec2.create(0,0)) ⇒ Object
2058 2059 2060 |
# File 'lib/imgui.rb', line 2058 def AddCustomRectFontGlyph(font, codepoint, w, h, advance_x, offset = ImVec2.create(0,0)) ImGui::ImFontAtlas_AddCustomRectFontGlyph(self, font, codepoint, w, h, advance_x, offset) end |
#AddCustomRectFontGlyphForSize(font, font_size, codepoint, w, h, advance_x, offset = ImVec2.create(0,0)) ⇒ Object
2062 2063 2064 |
# File 'lib/imgui.rb', line 2062 def AddCustomRectFontGlyphForSize(font, font_size, codepoint, w, h, advance_x, offset = ImVec2.create(0,0)) ImGui::ImFontAtlas_AddCustomRectFontGlyphForSize(self, font, font_size, codepoint, w, h, advance_x, offset) end |
#AddCustomRectRegular(w, h) ⇒ Object
2046 2047 2048 |
# File 'lib/imgui.rb', line 2046 def AddCustomRectRegular(w, h) ImGui::ImFontAtlas_AddCustomRectRegular(self, w, h) end |
#AddFont(font_cfg) ⇒ Object
1914 1915 1916 |
# File 'lib/imgui.rb', line 1914 def AddFont(font_cfg) ImGui::ImFontAtlas_AddFont(self, font_cfg) end |
#AddFontDefault(font_cfg = nil) ⇒ Object
1918 1919 1920 |
# File 'lib/imgui.rb', line 1918 def AddFontDefault(font_cfg = nil) ImGui::ImFontAtlas_AddFontDefault(self, font_cfg) end |
#AddFontDefaultBitmap(font_cfg = nil) ⇒ Object
1926 1927 1928 |
# File 'lib/imgui.rb', line 1926 def AddFontDefaultBitmap(font_cfg = nil) ImGui::ImFontAtlas_AddFontDefaultBitmap(self, font_cfg) end |
#AddFontDefaultVector(font_cfg = nil) ⇒ Object
1922 1923 1924 |
# File 'lib/imgui.rb', line 1922 def AddFontDefaultVector(font_cfg = nil) ImGui::ImFontAtlas_AddFontDefaultVector(self, font_cfg) end |
#AddFontFromFileTTF(filename, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
1930 1931 1932 |
# File 'lib/imgui.rb', line 1930 def AddFontFromFileTTF(filename, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ImGui::ImFontAtlas_AddFontFromFileTTF(self, filename, size_pixels, font_cfg, glyph_ranges) end |
#AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
1942 1943 1944 |
# File 'lib/imgui.rb', line 1942 def AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ImGui::ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(self, compressed_font_data_base85, size_pixels, font_cfg, glyph_ranges) end |
#AddFontFromMemoryCompressedTTF(compressed_font_data, compressed_font_data_size, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
1938 1939 1940 |
# File 'lib/imgui.rb', line 1938 def AddFontFromMemoryCompressedTTF(compressed_font_data, compressed_font_data_size, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ImGui::ImFontAtlas_AddFontFromMemoryCompressedTTF(self, compressed_font_data, compressed_font_data_size, size_pixels, font_cfg, glyph_ranges) end |
#AddFontFromMemoryTTF(font_data, font_data_size, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ⇒ Object
1934 1935 1936 |
# File 'lib/imgui.rb', line 1934 def AddFontFromMemoryTTF(font_data, font_data_size, size_pixels = 0.0, font_cfg = nil, glyph_ranges = nil) ImGui::ImFontAtlas_AddFontFromMemoryTTF(self, font_data, font_data_size, size_pixels, font_cfg, glyph_ranges) end |
#Build ⇒ Object
1974 1975 1976 |
# File 'lib/imgui.rb', line 1974 def Build() ImGui::ImFontAtlas_Build(self) end |
#CalcCustomRectUV(r, out_uv_min, out_uv_max) ⇒ Object
2054 2055 2056 |
# File 'lib/imgui.rb', line 2054 def CalcCustomRectUV(r, out_uv_min, out_uv_max) ImGui::ImFontAtlas_CalcCustomRectUV(self, r, out_uv_min, out_uv_max) end |
#Clear ⇒ Object
1950 1951 1952 |
# File 'lib/imgui.rb', line 1950 def Clear() ImGui::ImFontAtlas_Clear(self) end |
#ClearFonts ⇒ Object
1954 1955 1956 |
# File 'lib/imgui.rb', line 1954 def ClearFonts() ImGui::ImFontAtlas_ClearFonts(self) end |
#ClearInputData ⇒ Object
1966 1967 1968 |
# File 'lib/imgui.rb', line 1966 def ClearInputData() ImGui::ImFontAtlas_ClearInputData(self) end |
#ClearTexData ⇒ Object
1970 1971 1972 |
# File 'lib/imgui.rb', line 1970 def ClearTexData() ImGui::ImFontAtlas_ClearTexData(self) end |
#CompactCache ⇒ Object
1958 1959 1960 |
# File 'lib/imgui.rb', line 1958 def CompactCache() ImGui::ImFontAtlas_CompactCache(self) end |
#GetCustomRect(id, out_r) ⇒ Object
2042 2043 2044 |
# File 'lib/imgui.rb', line 2042 def GetCustomRect(id, out_r) ImGui::ImFontAtlas_GetCustomRect(self, id, out_r) end |
#GetCustomRectByIndex(id) ⇒ Object
2050 2051 2052 |
# File 'lib/imgui.rb', line 2050 def GetCustomRectByIndex(id) ImGui::ImFontAtlas_GetCustomRectByIndex(self, id) end |
#GetGlyphRangesChineseFull ⇒ Object
2014 2015 2016 |
# File 'lib/imgui.rb', line 2014 def GetGlyphRangesChineseFull() ImGui::ImFontAtlas_GetGlyphRangesChineseFull(self) end |
#GetGlyphRangesChineseSimplifiedCommon ⇒ Object
2018 2019 2020 |
# File 'lib/imgui.rb', line 2018 def GetGlyphRangesChineseSimplifiedCommon() ImGui::ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(self) end |
#GetGlyphRangesCyrillic ⇒ Object
2022 2023 2024 |
# File 'lib/imgui.rb', line 2022 def GetGlyphRangesCyrillic() ImGui::ImFontAtlas_GetGlyphRangesCyrillic(self) end |
#GetGlyphRangesDefault ⇒ Object
1998 1999 2000 |
# File 'lib/imgui.rb', line 1998 def GetGlyphRangesDefault() ImGui::ImFontAtlas_GetGlyphRangesDefault(self) end |
#GetGlyphRangesGreek ⇒ Object
2002 2003 2004 |
# File 'lib/imgui.rb', line 2002 def GetGlyphRangesGreek() ImGui::ImFontAtlas_GetGlyphRangesGreek(self) end |
#GetGlyphRangesJapanese ⇒ Object
2010 2011 2012 |
# File 'lib/imgui.rb', line 2010 def GetGlyphRangesJapanese() ImGui::ImFontAtlas_GetGlyphRangesJapanese(self) end |
#GetGlyphRangesKorean ⇒ Object
2006 2007 2008 |
# File 'lib/imgui.rb', line 2006 def GetGlyphRangesKorean() ImGui::ImFontAtlas_GetGlyphRangesKorean(self) end |
#GetGlyphRangesThai ⇒ Object
2026 2027 2028 |
# File 'lib/imgui.rb', line 2026 def GetGlyphRangesThai() ImGui::ImFontAtlas_GetGlyphRangesThai(self) end |
#GetGlyphRangesVietnamese ⇒ Object
2030 2031 2032 |
# File 'lib/imgui.rb', line 2030 def GetGlyphRangesVietnamese() ImGui::ImFontAtlas_GetGlyphRangesVietnamese(self) end |
#GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ⇒ Object
1978 1979 1980 |
# File 'lib/imgui.rb', line 1978 def GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ImGui::ImFontAtlas_GetTexDataAsAlpha8(self, out_pixels, out_width, out_height, out_bytes_per_pixel) end |
#GetTexDataAsRGBA32(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ⇒ Object
1982 1983 1984 |
# File 'lib/imgui.rb', line 1982 def GetTexDataAsRGBA32(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ImGui::ImFontAtlas_GetTexDataAsRGBA32(self, out_pixels, out_width, out_height, out_bytes_per_pixel) end |
#IsBuilt ⇒ Object
1994 1995 1996 |
# File 'lib/imgui.rb', line 1994 def IsBuilt() ImGui::ImFontAtlas_IsBuilt(self) end |
#RemoveCustomRect(id) ⇒ Object
2038 2039 2040 |
# File 'lib/imgui.rb', line 2038 def RemoveCustomRect(id) ImGui::ImFontAtlas_RemoveCustomRect(self, id) end |
#RemoveFont(font) ⇒ Object
1946 1947 1948 |
# File 'lib/imgui.rb', line 1946 def RemoveFont(font) ImGui::ImFontAtlas_RemoveFont(self, font) end |
#SetFontLoader(font_loader) ⇒ Object
1962 1963 1964 |
# File 'lib/imgui.rb', line 1962 def SetFontLoader(font_loader) ImGui::ImFontAtlas_SetFontLoader(self, font_loader) end |
#SetTexID(id) ⇒ Object
1986 1987 1988 |
# File 'lib/imgui.rb', line 1986 def SetTexID(id) ImGui::ImFontAtlas_SetTexID(self, id) end |
#SetTexIDImTextureRef(id) ⇒ Object
1990 1991 1992 |
# File 'lib/imgui.rb', line 1990 def SetTexIDImTextureRef(id) ImGui::ImFontAtlas_SetTexIDImTextureRef(self, id) end |