![]() |
Prusa Slicer 2.6.0
|
#include <src/imgui/imgui.h>
Collaboration diagram for ImFontAtlas:Public Types | |
| typedef ImFontAtlasCustomRect | CustomRect |
| typedef ImFontGlyphRangesBuilder | GlyphRangesBuilder |
Public Attributes | |
| ImFontAtlasFlags | Flags |
| ImTextureID | TexID |
| int | TexDesiredWidth |
| int | TexGlyphPadding |
| bool | Locked |
| bool | TexPixelsUseColors |
| unsigned char * | TexPixelsAlpha8 |
| unsigned int * | TexPixelsRGBA32 |
| int | TexWidth |
| int | TexHeight |
| ImVec2 | TexUvScale |
| ImVec2 | TexUvWhitePixel |
| ImVector< ImFont * > | Fonts |
| ImVector< ImFontAtlasCustomRect > | CustomRects |
| ImVector< ImFontConfig > | ConfigData |
| ImVec4 | TexUvLines [IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1] |
| const ImFontBuilderIO * | FontBuilderIO |
| unsigned int | FontBuilderFlags |
| int | PackIdMouseCursors |
| int | PackIdLines |
| ImFontAtlas::ImFontAtlas | ( | ) |
References PackIdLines, PackIdMouseCursors, and TexGlyphPadding.
| ImFontAtlas::~ImFontAtlas | ( | ) |
| int ImFontAtlas::AddCustomRectFontGlyph | ( | ImFont * | font, |
| ImWchar | id, | ||
| int | width, | ||
| int | height, | ||
| float | advance_x, | ||
| const ImVec2 & | offset = ImVec2(0, 0) |
||
| ) |
References CustomRects, ImFontAtlasCustomRect::Font, ImFontAtlasCustomRect::GlyphAdvanceX, ImFontAtlasCustomRect::GlyphID, ImFontAtlasCustomRect::GlyphOffset, ImFontAtlasCustomRect::Height, IM_ASSERT, IM_UNICODE_CODEPOINT_MAX, ImVector< T >::push_back(), ImVector< T >::Size, and ImFontAtlasCustomRect::Width.
Referenced by Slic3r::GUI::ImGuiWrapper::init_font().
Here is the call graph for this function:
Here is the caller graph for this function:| int ImFontAtlas::AddCustomRectRegular | ( | int | width, |
| int | height | ||
| ) |
References CustomRects, ImFontAtlasCustomRect::Height, IM_ASSERT, ImVector< T >::push_back(), ImVector< T >::Size, and ImFontAtlasCustomRect::Width.
Referenced by ImFontAtlasBuildInit().
Here is the call graph for this function:
Here is the caller graph for this function:| ImFont * ImFontAtlas::AddFont | ( | const ImFontConfig * | font_cfg | ) |
References ImVector< T >::back(), ClearTexData(), ConfigData, ImFontConfig::DstFont, ImFontConfig::EllipsisChar, ImFont::EllipsisChar, ImVector< T >::empty(), ImFontConfig::FontData, ImFontConfig::FontDataOwnedByAtlas, ImFontConfig::FontDataSize, Fonts, IM_ALLOC, IM_ASSERT, IM_NEW, Locked, ImFontConfig::MergeMode, ImVector< T >::push_back(), and ImFontConfig::SizePixels.
Referenced by AddFontFromMemoryTTF().
Here is the call graph for this function:
Here is the caller graph for this function:| ImFont * ImFontAtlas::AddFontDefault | ( | const ImFontConfig * | font_cfg = NULL | ) |
References AddFontFromMemoryCompressedBase85TTF(), ImFontConfig::EllipsisChar, GetDefaultCompressedFontDataTTFBase85(), GetGlyphRangesDefault(), ImFontConfig::GlyphOffset, ImFontConfig::GlyphRanges, IM_ARRAYSIZE, IM_FLOOR, ImFormatString(), ImFontConfig::Name, ImFontConfig::OversampleH, ImFontConfig::OversampleV, ImFontConfig::PixelSnapH, ImFontConfig::SizePixels, and ImVec2::y.
Referenced by GetTexDataAsAlpha8(), and Slic3r::GUI::ImGuiWrapper::init_font().
Here is the call graph for this function:
Here is the caller graph for this function:| ImFont * ImFontAtlas::AddFontFromFileTTF | ( | const char * | filename, |
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
References AddFontFromMemoryTTF(), IM_ARRAYSIZE, IM_ASSERT, IM_ASSERT_USER_ERROR, ImFileLoadToMemory(), ImFormatString(), Locked, and ImFontConfig::Name.
Referenced by Slic3r::GUI::ImGuiWrapper::init_font().
Here is the call graph for this function:
Here is the caller graph for this function:| ImFont * ImFontAtlas::AddFontFromMemoryCompressedBase85TTF | ( | const char * | compressed_font_data_base85, |
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
References AddFontFromMemoryCompressedTTF(), Decode85(), IM_ALLOC, and IM_FREE.
Referenced by AddFontDefault().
Here is the call graph for this function:
Here is the caller graph for this function:| ImFont * ImFontAtlas::AddFontFromMemoryCompressedTTF | ( | const void * | compressed_font_data, |
| int | compressed_font_size, | ||
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
References AddFontFromMemoryTTF(), ImFontConfig::FontData, ImFontConfig::FontDataOwnedByAtlas, IM_ALLOC, IM_ASSERT, stb_decompress(), and stb_decompress_length().
Referenced by AddFontFromMemoryCompressedBase85TTF(), and igl::opengl::glfw::imgui::ImGuiMenu::reload_font().
Here is the call graph for this function:
Here is the caller graph for this function:| ImFont * ImFontAtlas::AddFontFromMemoryTTF | ( | void * | font_data, |
| int | font_size, | ||
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
References AddFont(), ImFontConfig::FontData, ImFontConfig::FontDataSize, ImFontConfig::GlyphRanges, IM_ASSERT, Locked, and ImFontConfig::SizePixels.
Referenced by AddFontFromFileTTF(), AddFontFromMemoryCompressedTTF(), and Slic3r::GUI::Emboss::StyleManager::create_imgui_font().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ImFontAtlas::Build | ( | ) |
References ImFontBuilderIO::FontBuilder_Build, FontBuilderIO, IM_ASSERT, ImFontAtlasGetBuilderForStbTruetype(), and Locked.
Referenced by GetTexDataAsAlpha8().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::CalcCustomRectUV | ( | const ImFontAtlasCustomRect * | rect, |
| ImVec2 * | out_uv_min, | ||
| ImVec2 * | out_uv_max | ||
| ) | const |
References ImFontAtlasCustomRect::Height, IM_ASSERT, ImFontAtlasCustomRect::IsPacked(), TexHeight, TexUvScale, TexWidth, ImFontAtlasCustomRect::Width, ImVec2::x, ImFontAtlasCustomRect::X, ImVec2::y, and ImFontAtlasCustomRect::Y.
Referenced by ImFontAtlasBuildFinish().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::Clear | ( | ) |
References ClearFonts(), ClearInputData(), and ClearTexData().
Referenced by ~ImFontAtlas(), Slic3r::GUI::Emboss::StyleManager::clear_imgui_font(), Slic3r::GUI::ImGuiWrapper::init_font(), and igl::opengl::glfw::imgui::ImGuiMenu::reload_font().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::ClearFonts | ( | ) |
References ImVector< T >::clear(), Fonts, IM_ASSERT, IM_DELETE(), Locked, and ImVector< T >::Size.
Referenced by Clear().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::ClearInputData | ( | ) |
References ImVector< T >::clear(), ConfigData, CustomRects, ImVector< T >::Data, Fonts, IM_ASSERT, IM_FREE, Locked, PackIdLines, PackIdMouseCursors, and ImVector< T >::Size.
Referenced by Clear().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::ClearTexData | ( | ) |
References IM_ASSERT, IM_FREE, Locked, TexPixelsAlpha8, TexPixelsRGBA32, and TexPixelsUseColors.
Referenced by AddFont(), Clear(), and ImFontAtlasBuildWithStbTruetype().
Here is the caller graph for this function:
|
inline |
References IM_ASSERT.
Referenced by GetMouseCursorTexData(), Slic3r::GUI::ImGuiWrapper::GetTextureCustomRect(), ImFontAtlasBuildRenderDefaultTexData(), ImFontAtlasBuildRenderLinesTexData(), and Slic3r::GUI::ImGuiWrapper::init_font().
Here is the caller graph for this function:Referenced by Slic3r::GUI::ImGuiWrapper::set_language().
Here is the caller graph for this function:References IM_ARRAYSIZE, and UnpackAccumulativeOffsetsIntoRanges().
Referenced by Slic3r::GUI::ImGuiWrapper::set_language().
Here is the call graph for this function:
Here is the caller graph for this function:Referenced by Slic3r::GUI::ImGuiWrapper::set_language().
Here is the caller graph for this function:Referenced by AddFontDefault(), ImFontAtlasBuildWithStbTruetype(), and Slic3r::GUI::ImGuiWrapper::set_language().
Here is the caller graph for this function:References IM_ARRAYSIZE, and UnpackAccumulativeOffsetsIntoRanges().
Referenced by Slic3r::GUI::ImGuiWrapper::set_language().
Here is the call graph for this function:
Here is the caller graph for this function:Referenced by Slic3r::GUI::ImGuiWrapper::set_language().
Here is the caller graph for this function:Referenced by Slic3r::GUI::ImGuiWrapper::set_language().
Here is the caller graph for this function:| bool ImFontAtlas::GetMouseCursorTexData | ( | ImGuiMouseCursor | cursor, |
| ImVec2 * | out_offset, | ||
| ImVec2 * | out_size, | ||
| ImVec2 | out_uv_border[2], | ||
| ImVec2 | out_uv_fill[2] | ||
| ) |
References Flags, FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA, FONT_ATLAS_DEFAULT_TEX_DATA_W, GetCustomRectByIndex(), IM_ASSERT, ImFontAtlasFlags_NoMouseCursors, ImGuiMouseCursor_COUNT, PackIdMouseCursors, TexUvScale, ImFontAtlasCustomRect::X, and ImFontAtlasCustomRect::Y.
Referenced by ImGui::RenderMouseCursor().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::GetTexDataAsAlpha8 | ( | unsigned char ** | out_pixels, |
| int * | out_width, | ||
| int * | out_height, | ||
| int * | out_bytes_per_pixel = NULL |
||
| ) |
References AddFontDefault(), Build(), ConfigData, ImVector< T >::empty(), TexHeight, TexPixelsAlpha8, and TexWidth.
Referenced by GetTexDataAsRGBA32().
Here is the call graph for this function:
Here is the caller graph for this function:| void ImFontAtlas::GetTexDataAsRGBA32 | ( | unsigned char ** | out_pixels, |
| int * | out_width, | ||
| int * | out_height, | ||
| int * | out_bytes_per_pixel = NULL |
||
| ) |
References GetTexDataAsAlpha8(), IM_ALLOC, IM_COL32, TexHeight, TexPixelsRGBA32, and TexWidth.
Referenced by Slic3r::GUI::Emboss::StyleManager::create_imgui_font(), and Slic3r::GUI::ImGuiWrapper::init_font().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| ImVector<ImFontConfig> ImFontAtlas::ConfigData |
Referenced by AddFont(), ClearInputData(), GetTexDataAsAlpha8(), and ImFontAtlasBuildWithStbTruetype().
| ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects |
| ImFontAtlasFlags ImFontAtlas::Flags |
Referenced by ImDrawList::AddPolyline(), Slic3r::GUI::Emboss::StyleManager::create_imgui_font(), GetMouseCursorTexData(), ImFontAtlasBuildInit(), ImFontAtlasBuildRenderDefaultTexData(), ImFontAtlasBuildRenderLinesTexData(), ImFontAtlasBuildWithStbTruetype(), ImGui::NewFrame(), and ImGui::ShowAboutWindow().
| unsigned int ImFontAtlas::FontBuilderFlags |
| const ImFontBuilderIO* ImFontAtlas::FontBuilderIO |
Referenced by Build().
Referenced by AddFont(), ClearFonts(), ClearInputData(), Slic3r::GUI::Emboss::StyleManager::create_imgui_font(), ImGui::ErrorCheckNewFrameSanityChecks(), Slic3r::GUI::Emboss::StyleManager::get_imgui_font(), ImGui::GetDefaultFont(), ImFontAtlasBuildFinish(), ImFontAtlasBuildWithStbTruetype(), ImGui::ShowAboutWindow(), ImGui::ShowFontAtlas(), ImGui::ShowFontSelector(), and ImGui::ShowMetricsWindow().
| bool ImFontAtlas::Locked |
| int ImFontAtlas::PackIdLines |
Referenced by ImFontAtlas(), ClearInputData(), ImFontAtlasBuildInit(), and ImFontAtlasBuildRenderLinesTexData().
| int ImFontAtlas::PackIdMouseCursors |
| int ImFontAtlas::TexDesiredWidth |
Referenced by ImFontAtlasBuildWithStbTruetype().
| int ImFontAtlas::TexGlyphPadding |
Referenced by ImFontAtlas(), ImFont::AddGlyph(), and ImFontAtlasBuildWithStbTruetype().
| int ImFontAtlas::TexHeight |
Referenced by ImFont::AddGlyph(), CalcCustomRectUV(), Slic3r::GUI::ImGuiWrapper::draw_icon(), GetTexDataAsAlpha8(), GetTexDataAsRGBA32(), Slic3r::GUI::ImGuiWrapper::image_button(), ImFontAtlasBuildPackCustomRects(), ImFontAtlasBuildWithStbTruetype(), ImGui::ShowAboutWindow(), ShowDemoWindowWidgets(), ImGui::ShowFontAtlas(), and Slic3r::GUI::ImGuiWrapper::slider_float().
| ImTextureID ImFontAtlas::TexID |
Referenced by ImDrawList::AddText(), ImGui::Begin(), Slic3r::GUI::Emboss::StyleManager::create_imgui_font(), Slic3r::GUI::ImGuiWrapper::destroy_font(), Slic3r::GUI::ImGuiWrapper::draw_icon(), GetViewportDrawList(), Slic3r::GUI::ImGuiWrapper::image_button(), ImFontAtlasBuildWithStbTruetype(), Slic3r::GUI::ImGuiWrapper::init_font(), ImGui::PushFont(), ImGui::RenderMouseCursor(), ShowDemoWindowWidgets(), ImGui::ShowFontAtlas(), and Slic3r::GUI::ImGuiWrapper::slider_float().
| unsigned char* ImFontAtlas::TexPixelsAlpha8 |
| unsigned int* ImFontAtlas::TexPixelsRGBA32 |
| bool ImFontAtlas::TexPixelsUseColors |
Referenced by ClearTexData().
| ImVec4 ImFontAtlas::TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1] |
Referenced by ImFontAtlasBuildRenderLinesTexData(), and ImGui::SetCurrentFont().
| ImVec2 ImFontAtlas::TexUvScale |
| ImVec2 ImFontAtlas::TexUvWhitePixel |
| int ImFontAtlas::TexWidth |
Referenced by ImFont::AddGlyph(), CalcCustomRectUV(), Slic3r::GUI::ImGuiWrapper::draw_icon(), GetTexDataAsAlpha8(), GetTexDataAsRGBA32(), Slic3r::GUI::ImGuiWrapper::image_button(), ImFontAtlasBuildRender32bppRectFromString(), ImFontAtlasBuildRender8bppRectFromString(), ImFontAtlasBuildRenderDefaultTexData(), ImFontAtlasBuildRenderLinesTexData(), ImFontAtlasBuildWithStbTruetype(), ImGui::ShowAboutWindow(), ShowDemoWindowWidgets(), ImGui::ShowFontAtlas(), and Slic3r::GUI::ImGuiWrapper::slider_float().