Lines Matching defs:ImFontAtlas

14 // [SECTION] ImFontAtlas
15 // [SECTION] ImFontAtlas glyph ranges helpers
1380 // [SECTION] ImFontAtlas
1432 ImFontAtlas::ImFontAtlas()
1449 ImFontAtlas::~ImFontAtlas()
1451 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1455 void ImFontAtlas::ClearInputData()
1457 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1478 void ImFontAtlas::ClearTexData()
1480 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1489 void ImFontAtlas::ClearFonts()
1491 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1497 void ImFontAtlas::Clear()
1504 void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel)
1520 void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel)
1544 ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg)
1546 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1589 ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template)
1609 ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
1611 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1630 // NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build().
1631 ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* ttf_data, int ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
1633 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1644 ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
1656 ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
1666 int ImFontAtlas::AddCustomRectRegular(unsigned int id, int width, int height)
1679 int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
1695 void ImFontAtlas::CalcCustomRectUV(const CustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max)
1703 bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2])
1711 ImFontAtlas::CustomRect& r = CustomRects[CustomRectIds[0]];
1725 bool ImFontAtlas::Build()
1727 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1785 bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas)
2043 void ImFontAtlasBuildRegisterDefaultCustomRects(ImFontAtlas* atlas)
2053 void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent)
2067 void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque)
2072 ImVector<ImFontAtlas::CustomRect>& user_rects = atlas->CustomRects;
2094 static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas)
2098 ImFontAtlas::CustomRect& r = atlas->CustomRects[atlas->CustomRectIds[0]];
2125 void ImFontAtlasBuildFinish(ImFontAtlas* atlas)
2133 const ImFontAtlas::CustomRect& r = atlas->CustomRects[i];
2150 const ImWchar* ImFontAtlas::GetGlyphRangesDefault()
2160 const ImWchar* ImFontAtlas::GetGlyphRangesKorean()
2172 const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull()
2198 // [SECTION] ImFontAtlas glyph ranges helpers
2201 const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon()
2268 const ImWchar* ImFontAtlas::GetGlyphRangesJapanese()
2326 const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic()
2339 const ImWchar* ImFontAtlas::GetGlyphRangesThai()
2509 IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function.
2958 ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas;