#include <imgui.h>
Classes | |
| struct | CustomRect |
Public Types | |
| typedef ImFontGlyphRangesBuilder | GlyphRangesBuilder |
Public Member Functions | |
| IMGUI_API int | AddCustomRectFontGlyph (ImFont *font, ImWchar id, int width, int height, float advance_x, const ImVec2 &offset=ImVec2(0, 0)) |
| IMGUI_API int | AddCustomRectRegular (unsigned int id, int width, int height) |
| IMGUI_API ImFont * | AddFont (const ImFontConfig *font_cfg) |
| IMGUI_API ImFont * | AddFontDefault (const ImFontConfig *font_cfg=NULL) |
| IMGUI_API ImFont * | AddFontFromFileTTF (const char *filename, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL) |
| IMGUI_API ImFont * | AddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL) |
| IMGUI_API ImFont * | AddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL) |
| IMGUI_API ImFont * | AddFontFromMemoryTTF (void *font_data, int font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL) |
| IMGUI_API bool | Build () |
| IMGUI_API void | CalcCustomRectUV (const CustomRect *rect, ImVec2 *out_uv_min, ImVec2 *out_uv_max) |
| IMGUI_API void | Clear () |
| IMGUI_API void | ClearFonts () |
| IMGUI_API void | ClearInputData () |
| IMGUI_API void | ClearTexData () |
| const CustomRect * | GetCustomRectByIndex (int index) const |
| IMGUI_API const ImWchar * | GetGlyphRangesChineseFull () |
| IMGUI_API const ImWchar * | GetGlyphRangesChineseSimplifiedCommon () |
| IMGUI_API const ImWchar * | GetGlyphRangesCyrillic () |
| IMGUI_API const ImWchar * | GetGlyphRangesDefault () |
| IMGUI_API const ImWchar * | GetGlyphRangesJapanese () |
| IMGUI_API const ImWchar * | GetGlyphRangesKorean () |
| IMGUI_API const ImWchar * | GetGlyphRangesThai () |
| IMGUI_API bool | GetMouseCursorTexData (ImGuiMouseCursor cursor, ImVec2 *out_offset, ImVec2 *out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) |
| IMGUI_API void | GetTexDataAsAlpha8 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL) |
| IMGUI_API void | GetTexDataAsRGBA32 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL) |
| IMGUI_API | ImFontAtlas () |
| bool | IsBuilt () |
| void | SetTexID (ImTextureID id) |
| IMGUI_API | ~ImFontAtlas () |
Public Attributes | |
| ImVector< ImFontConfig > | ConfigData |
| int | CustomRectIds [1] |
| ImVector< CustomRect > | CustomRects |
| ImFontAtlasFlags | Flags |
| ImVector< ImFont * > | Fonts |
| bool | Locked |
| int | TexDesiredWidth |
| int | TexGlyphPadding |
| int | TexHeight |
| ImTextureID | TexID |
| unsigned char * | TexPixelsAlpha8 |
| unsigned int * | TexPixelsRGBA32 |
| ImVec2 | TexUvScale |
| ImVec2 | TexUvWhitePixel |
| int | TexWidth |
| ImFontAtlas::ImFontAtlas | ( | ) |
Definition at line 1422 of file imgui_draw.cpp.
| ImFontAtlas::~ImFontAtlas | ( | ) |
Definition at line 1439 of file imgui_draw.cpp.
| int ImFontAtlas::AddCustomRectFontGlyph | ( | ImFont * | font, |
| ImWchar | id, | ||
| int | width, | ||
| int | height, | ||
| float | advance_x, | ||
| const ImVec2 & | offset = ImVec2(0,0) |
||
| ) |
Definition at line 1667 of file imgui_draw.cpp.
| int ImFontAtlas::AddCustomRectRegular | ( | unsigned int | id, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 1654 of file imgui_draw.cpp.
| ImFont * ImFontAtlas::AddFont | ( | const ImFontConfig * | font_cfg | ) |
Definition at line 1534 of file imgui_draw.cpp.
| ImFont * ImFontAtlas::AddFontDefault | ( | const ImFontConfig * | font_cfg = NULL | ) |
Definition at line 1579 of file imgui_draw.cpp.
| ImFont * ImFontAtlas::AddFontFromFileTTF | ( | const char * | filename, |
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
Definition at line 1597 of file imgui_draw.cpp.
| ImFont * ImFontAtlas::AddFontFromMemoryCompressedBase85TTF | ( | const char * | compressed_font_data_base85, |
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
Definition at line 1644 of file imgui_draw.cpp.
| 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 |
||
| ) |
Definition at line 1632 of file imgui_draw.cpp.
| ImFont * ImFontAtlas::AddFontFromMemoryTTF | ( | void * | font_data, |
| int | font_size, | ||
| float | size_pixels, | ||
| const ImFontConfig * | font_cfg = NULL, |
||
| const ImWchar * | glyph_ranges = NULL |
||
| ) |
Definition at line 1619 of file imgui_draw.cpp.
| bool ImFontAtlas::Build | ( | ) |
Definition at line 1713 of file imgui_draw.cpp.
| void ImFontAtlas::CalcCustomRectUV | ( | const CustomRect * | rect, |
| ImVec2 * | out_uv_min, | ||
| ImVec2 * | out_uv_max | ||
| ) |
Definition at line 1683 of file imgui_draw.cpp.
| void ImFontAtlas::Clear | ( | ) |
Definition at line 1487 of file imgui_draw.cpp.
| void ImFontAtlas::ClearFonts | ( | ) |
Definition at line 1479 of file imgui_draw.cpp.
| void ImFontAtlas::ClearInputData | ( | ) |
Definition at line 1445 of file imgui_draw.cpp.
| void ImFontAtlas::ClearTexData | ( | ) |
Definition at line 1468 of file imgui_draw.cpp.
|
inline |
| const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull | ( | ) |
Definition at line 2083 of file imgui_draw.cpp.
| const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon | ( | ) |
Definition at line 2111 of file imgui_draw.cpp.
| const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic | ( | ) |
Definition at line 2235 of file imgui_draw.cpp.
| const ImWchar * ImFontAtlas::GetGlyphRangesDefault | ( | ) |
Definition at line 2061 of file imgui_draw.cpp.
| const ImWchar * ImFontAtlas::GetGlyphRangesJapanese | ( | ) |
Definition at line 2177 of file imgui_draw.cpp.
| const ImWchar * ImFontAtlas::GetGlyphRangesKorean | ( | ) |
Definition at line 2071 of file imgui_draw.cpp.
| const ImWchar * ImFontAtlas::GetGlyphRangesThai | ( | ) |
Definition at line 2248 of file imgui_draw.cpp.
| bool ImFontAtlas::GetMouseCursorTexData | ( | ImGuiMouseCursor | cursor, |
| ImVec2 * | out_offset, | ||
| ImVec2 * | out_size, | ||
| ImVec2 | out_uv_border[2], | ||
| ImVec2 | out_uv_fill[2] | ||
| ) |
Definition at line 1691 of file imgui_draw.cpp.
| void ImFontAtlas::GetTexDataAsAlpha8 | ( | unsigned char ** | out_pixels, |
| int * | out_width, | ||
| int * | out_height, | ||
| int * | out_bytes_per_pixel = NULL |
||
| ) |
Definition at line 1494 of file imgui_draw.cpp.
| void ImFontAtlas::GetTexDataAsRGBA32 | ( | unsigned char ** | out_pixels, |
| int * | out_width, | ||
| int * | out_height, | ||
| int * | out_bytes_per_pixel = NULL |
||
| ) |
Definition at line 1510 of file imgui_draw.cpp.
|
inline |
| ImVector<ImFontConfig> ImFontAtlas::ConfigData |
| ImVector<CustomRect> ImFontAtlas::CustomRects |
| ImFontAtlasFlags ImFontAtlas::Flags |
| ImTextureID ImFontAtlas::TexID |