ScummVM API documentation
ImFontAtlas Struct Reference

Public Member Functions

ImFontAddFont (const ImFontConfig *font_cfg)
 
ImFontAddFontDefault (const ImFontConfig *font_cfg=NULL)
 
ImFontAddFontFromFileTTF (const char *filename, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
ImFontAddFontFromMemoryTTF (void *font_data, int font_data_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
ImFontAddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_data_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
ImFontAddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
void ClearInputData ()
 
void ClearTexData ()
 
void ClearFonts ()
 
void Clear ()
 
bool Build ()
 
void GetTexDataAsAlpha8 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
void GetTexDataAsRGBA32 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
bool IsBuilt () const
 
void SetTexID (ImTextureID id)
 
const ImWchar * GetGlyphRangesDefault ()
 
const ImWchar * GetGlyphRangesGreek ()
 
const ImWchar * GetGlyphRangesKorean ()
 
const ImWchar * GetGlyphRangesJapanese ()
 
const ImWchar * GetGlyphRangesChineseFull ()
 
const ImWchar * GetGlyphRangesChineseSimplifiedCommon ()
 
const ImWchar * GetGlyphRangesCyrillic ()
 
const ImWchar * GetGlyphRangesThai ()
 
const ImWchar * GetGlyphRangesVietnamese ()
 
int AddCustomRectRegular (int width, int height)
 
int AddCustomRectFontGlyph (ImFont *font, ImWchar id, int width, int height, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
 
ImFontAtlasCustomRectGetCustomRectByIndex (int index)
 
void CalcCustomRectUV (const ImFontAtlasCustomRect *rect, ImVec2 *out_uv_min, ImVec2 *out_uv_max) const
 
bool GetMouseCursorTexData (ImGuiMouseCursor cursor, ImVec2 *out_offset, ImVec2 *out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2])
 

Public Attributes

ImFontAtlasFlags Flags
 
ImTextureID TexID
 
int TexDesiredWidth
 
int TexGlyphPadding
 
bool Locked
 
void * UserData
 
bool TexReady
 
bool TexPixelsUseColors
 
unsigned char * TexPixelsAlpha8
 
unsigned int * TexPixelsRGBA32
 
int TexWidth
 
int TexHeight
 
ImVec2 TexUvScale
 
ImVec2 TexUvWhitePixel
 
ImVector< ImFont * > Fonts
 
ImVector< ImFontAtlasCustomRectCustomRects
 
ImVector< ImFontConfigConfigData
 
ImVec4 TexUvLines [(63)+1]
 
const ImFontBuilderIOFontBuilderIO
 
unsigned int FontBuilderFlags
 
int PackIdMouseCursors
 
int PackIdLines
 

The documentation for this struct was generated from the following file: