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
2043 2044 2045 |
# File 'lib/imgui.rb', line 2043 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
2067 2068 2069 |
# File 'lib/imgui.rb', line 2067 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
2071 2072 2073 |
# File 'lib/imgui.rb', line 2071 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
2055 2056 2057 |
# File 'lib/imgui.rb', line 2055 def AddCustomRectRegular(w, h) ImGui::ImFontAtlas_AddCustomRectRegular(self, w, h) end |
#AddFont(font_cfg) ⇒ Object
1923 1924 1925 |
# File 'lib/imgui.rb', line 1923 def AddFont(font_cfg) ImGui::ImFontAtlas_AddFont(self, font_cfg) end |
#AddFontDefault(font_cfg = nil) ⇒ Object
1927 1928 1929 |
# File 'lib/imgui.rb', line 1927 def AddFontDefault(font_cfg = nil) ImGui::ImFontAtlas_AddFontDefault(self, font_cfg) end |
#AddFontDefaultBitmap(font_cfg = nil) ⇒ Object
1935 1936 1937 |
# File 'lib/imgui.rb', line 1935 def AddFontDefaultBitmap(font_cfg = nil) ImGui::ImFontAtlas_AddFontDefaultBitmap(self, font_cfg) end |
#AddFontDefaultVector(font_cfg = nil) ⇒ Object
1931 1932 1933 |
# File 'lib/imgui.rb', line 1931 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
1939 1940 1941 |
# File 'lib/imgui.rb', line 1939 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
1951 1952 1953 |
# File 'lib/imgui.rb', line 1951 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
1947 1948 1949 |
# File 'lib/imgui.rb', line 1947 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
1943 1944 1945 |
# File 'lib/imgui.rb', line 1943 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
1983 1984 1985 |
# File 'lib/imgui.rb', line 1983 def Build() ImGui::ImFontAtlas_Build(self) end |
#CalcCustomRectUV(r, out_uv_min, out_uv_max) ⇒ Object
2063 2064 2065 |
# File 'lib/imgui.rb', line 2063 def CalcCustomRectUV(r, out_uv_min, out_uv_max) ImGui::ImFontAtlas_CalcCustomRectUV(self, r, out_uv_min, out_uv_max) end |
#Clear ⇒ Object
1967 1968 1969 |
# File 'lib/imgui.rb', line 1967 def Clear() ImGui::ImFontAtlas_Clear(self) end |
#ClearFonts ⇒ Object
1971 1972 1973 |
# File 'lib/imgui.rb', line 1971 def ClearFonts() ImGui::ImFontAtlas_ClearFonts(self) end |
#ClearInputData ⇒ Object
1975 1976 1977 |
# File 'lib/imgui.rb', line 1975 def ClearInputData() ImGui::ImFontAtlas_ClearInputData(self) end |
#ClearTexData ⇒ Object
1979 1980 1981 |
# File 'lib/imgui.rb', line 1979 def ClearTexData() ImGui::ImFontAtlas_ClearTexData(self) end |
#CompactCache ⇒ Object
1959 1960 1961 |
# File 'lib/imgui.rb', line 1959 def CompactCache() ImGui::ImFontAtlas_CompactCache(self) end |
#GetCustomRect(id, out_r) ⇒ Object
2051 2052 2053 |
# File 'lib/imgui.rb', line 2051 def GetCustomRect(id, out_r) ImGui::ImFontAtlas_GetCustomRect(self, id, out_r) end |
#GetCustomRectByIndex(id) ⇒ Object
2059 2060 2061 |
# File 'lib/imgui.rb', line 2059 def GetCustomRectByIndex(id) ImGui::ImFontAtlas_GetCustomRectByIndex(self, id) end |
#GetGlyphRangesChineseFull ⇒ Object
2023 2024 2025 |
# File 'lib/imgui.rb', line 2023 def GetGlyphRangesChineseFull() ImGui::ImFontAtlas_GetGlyphRangesChineseFull(self) end |
#GetGlyphRangesChineseSimplifiedCommon ⇒ Object
2027 2028 2029 |
# File 'lib/imgui.rb', line 2027 def GetGlyphRangesChineseSimplifiedCommon() ImGui::ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(self) end |
#GetGlyphRangesCyrillic ⇒ Object
2031 2032 2033 |
# File 'lib/imgui.rb', line 2031 def GetGlyphRangesCyrillic() ImGui::ImFontAtlas_GetGlyphRangesCyrillic(self) end |
#GetGlyphRangesDefault ⇒ Object
2007 2008 2009 |
# File 'lib/imgui.rb', line 2007 def GetGlyphRangesDefault() ImGui::ImFontAtlas_GetGlyphRangesDefault(self) end |
#GetGlyphRangesGreek ⇒ Object
2011 2012 2013 |
# File 'lib/imgui.rb', line 2011 def GetGlyphRangesGreek() ImGui::ImFontAtlas_GetGlyphRangesGreek(self) end |
#GetGlyphRangesJapanese ⇒ Object
2019 2020 2021 |
# File 'lib/imgui.rb', line 2019 def GetGlyphRangesJapanese() ImGui::ImFontAtlas_GetGlyphRangesJapanese(self) end |
#GetGlyphRangesKorean ⇒ Object
2015 2016 2017 |
# File 'lib/imgui.rb', line 2015 def GetGlyphRangesKorean() ImGui::ImFontAtlas_GetGlyphRangesKorean(self) end |
#GetGlyphRangesThai ⇒ Object
2035 2036 2037 |
# File 'lib/imgui.rb', line 2035 def GetGlyphRangesThai() ImGui::ImFontAtlas_GetGlyphRangesThai(self) end |
#GetGlyphRangesVietnamese ⇒ Object
2039 2040 2041 |
# File 'lib/imgui.rb', line 2039 def GetGlyphRangesVietnamese() ImGui::ImFontAtlas_GetGlyphRangesVietnamese(self) end |
#GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel = nil) ⇒ Object
1987 1988 1989 |
# File 'lib/imgui.rb', line 1987 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
1991 1992 1993 |
# File 'lib/imgui.rb', line 1991 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
2003 2004 2005 |
# File 'lib/imgui.rb', line 2003 def IsBuilt() ImGui::ImFontAtlas_IsBuilt(self) end |
#RemoveCustomRect(id) ⇒ Object
2047 2048 2049 |
# File 'lib/imgui.rb', line 2047 def RemoveCustomRect(id) ImGui::ImFontAtlas_RemoveCustomRect(self, id) end |
#RemoveFont(font) ⇒ Object
1955 1956 1957 |
# File 'lib/imgui.rb', line 1955 def RemoveFont(font) ImGui::ImFontAtlas_RemoveFont(self, font) end |
#SetFontLoader(font_loader) ⇒ Object
1963 1964 1965 |
# File 'lib/imgui.rb', line 1963 def SetFontLoader(font_loader) ImGui::ImFontAtlas_SetFontLoader(self, font_loader) end |
#SetTexID(id) ⇒ Object
1995 1996 1997 |
# File 'lib/imgui.rb', line 1995 def SetTexID(id) ImGui::ImFontAtlas_SetTexID(self, id) end |
#SetTexIDImTextureRef(id) ⇒ Object
1999 2000 2001 |
# File 'lib/imgui.rb', line 1999 def SetTexIDImTextureRef(id) ImGui::ImFontAtlas_SetTexIDImTextureRef(self, id) end |