#include <imgui.h>
Public Types | |
typedef ImFontAtlasCustomRect | CustomRect |
typedef ImFontGlyphRangesBuilder | GlyphRangesBuilder |
Public Attributes | |
ImVector< ImFontConfig > | ConfigData |
int | CustomRectIds [1] |
ImVector< ImFontAtlasCustomRect > | 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 1591 of file imgui_draw.cpp.
ImFontAtlas::~ImFontAtlas | ( | ) |
Definition at line 1608 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 1843 of file imgui_draw.cpp.
int ImFontAtlas::AddCustomRectRegular | ( | unsigned int | id, |
int | width, | ||
int | height | ||
) |
Definition at line 1829 of file imgui_draw.cpp.
ImFont * ImFontAtlas::AddFont | ( | const ImFontConfig * | font_cfg | ) |
Definition at line 1703 of file imgui_draw.cpp.
ImFont * ImFontAtlas::AddFontDefault | ( | const ImFontConfig * | font_cfg = NULL | ) |
Definition at line 1751 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 1772 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 1819 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 1807 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 1794 of file imgui_draw.cpp.
bool ImFontAtlas::Build | ( | ) |
Definition at line 1889 of file imgui_draw.cpp.
void ImFontAtlas::CalcCustomRectUV | ( | const ImFontAtlasCustomRect * | rect, |
ImVec2 * | out_uv_min, | ||
ImVec2 * | out_uv_max | ||
) | const |
Definition at line 1859 of file imgui_draw.cpp.
void ImFontAtlas::Clear | ( | ) |
Definition at line 1656 of file imgui_draw.cpp.
void ImFontAtlas::ClearFonts | ( | ) |
Definition at line 1648 of file imgui_draw.cpp.
void ImFontAtlas::ClearInputData | ( | ) |
Definition at line 1614 of file imgui_draw.cpp.
void ImFontAtlas::ClearTexData | ( | ) |
Definition at line 1637 of file imgui_draw.cpp.
|
inline |
const ImWchar * ImFontAtlas::GetGlyphRangesChineseFull | ( | ) |
Definition at line 2352 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon | ( | ) |
Definition at line 2381 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic | ( | ) |
Definition at line 2506 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesDefault | ( | ) |
Definition at line 2330 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesJapanese | ( | ) |
Definition at line 2448 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesKorean | ( | ) |
Definition at line 2340 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesThai | ( | ) |
Definition at line 2519 of file imgui_draw.cpp.
const ImWchar * ImFontAtlas::GetGlyphRangesVietnamese | ( | ) |
Definition at line 2531 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 1867 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 1663 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 1679 of file imgui_draw.cpp.
|
inline |
ImVector<ImFontConfig> ImFontAtlas::ConfigData |
ImVector<ImFontAtlasCustomRect> ImFontAtlas::CustomRects |
ImFontAtlasFlags ImFontAtlas::Flags |
ImTextureID ImFontAtlas::TexID |