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=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
ImFontAddFontFromMemoryTTF (void *font_data, int font_data_size, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
ImFontAddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_data_size, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
ImFontAddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels=0.0f, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
void RemoveFont (ImFont *font)
 
void Clear ()
 
void CompactCache ()
 
void ClearInputData ()
 
void ClearFonts ()
 
void ClearTexData ()
 
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)
 
void SetTexID (ImTextureID id)
 
void SetTexID (ImTextureRef id)
 
bool IsBuilt () const
 
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 ()
 
ImFontAtlasRectId AddCustomRect (int width, int height, ImFontAtlasRect *out_r=NULL)
 
void RemoveCustomRect (ImFontAtlasRectId id)
 
bool GetCustomRect (ImFontAtlasRectId id, ImFontAtlasRect *out_r) const
 
ImFontAtlasRectId AddCustomRectRegular (int w, int h)
 
const ImFontAtlasRectGetCustomRectByIndex (ImFontAtlasRectId id)
 
void CalcCustomRectUV (const ImFontAtlasRect *r, ImVec2 *out_uv_min, ImVec2 *out_uv_max) const
 
ImFontAtlasRectId AddCustomRectFontGlyph (ImFont *font, ImWchar codepoint, int w, int h, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
 
ImFontAtlasRectId AddCustomRectFontGlyphForSize (ImFont *font, float font_size, ImWchar codepoint, int w, int h, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
 

Public Attributes

ImFontAtlasFlags Flags
 
ImTextureFormat TexDesiredFormat
 
int TexGlyphPadding
 
int TexMinWidth
 
int TexMinHeight
 
int TexMaxWidth
 
int TexMaxHeight
 
void * UserData
 
union {
   ImTextureRef   TexRef
 
   ImTextureRef   TexID
 
}; 
 
ImTextureDataTexData
 
ImVector< ImTextureData * > TexList
 
bool Locked
 
bool RendererHasTextures
 
bool TexIsBuilt
 
bool TexPixelsUseColors
 
ImVec2 TexUvScale
 
ImVec2 TexUvWhitePixel
 
ImVector< ImFont * > Fonts
 
ImVector< ImFontConfigSources
 
ImVec4 TexUvLines [(32)+1]
 
int TexNextUniqueID
 
int FontNextUniqueID
 
ImVector< ImDrawListSharedData * > DrawListSharedDatas
 
ImFontAtlasBuilderBuilder
 
const ImFontLoaderFontLoader
 
const char * FontLoaderName
 
void * FontLoaderData
 
unsigned int FontLoaderFlags
 
int RefCount
 
ImGuiContextOwnerContext
 
ImFontAtlasRect TempRect
 

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