ScummVM API documentation
ImFont Struct Reference

Public Member Functions

const ImFontGlyphFindGlyph (ImWchar c) const
 
const ImFontGlyphFindGlyphNoFallback (ImWchar c) const
 
float GetCharAdvance (ImWchar c) const
 
bool IsLoaded () const
 
const char * GetDebugName () const
 
ImVec2 CalcTextSizeA (float size, float max_width, float wrap_width, const char *text_begin, const char *text_end=NULL, const char **remaining=NULL) const
 
const char * CalcWordWrapPositionA (float scale, const char *text, const char *text_end, float wrap_width) const
 
void RenderChar (ImDrawList *draw_list, float size, const ImVec2 &pos, ImU32 col, ImWchar c) const
 
void RenderText (ImDrawList *draw_list, float size, const ImVec2 &pos, ImU32 col, const ImVec4 &clip_rect, const char *text_begin, const char *text_end, float wrap_width=0.0f, bool cpu_fine_clip=false) const
 
void BuildLookupTable ()
 
void ClearOutputData ()
 
void GrowIndex (int new_size)
 
void AddGlyph (const ImFontConfig *src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x)
 
void AddRemapChar (ImWchar dst, ImWchar src, bool overwrite_dst=true)
 
void SetGlyphVisible (ImWchar c, bool visible)
 
bool IsGlyphRangeUnused (unsigned int c_begin, unsigned int c_last)
 

Public Attributes

ImVector< float > IndexAdvanceX
 
float FallbackAdvanceX
 
float FontSize
 
ImVector< ImWchar > IndexLookup
 
ImVector< ImFontGlyphGlyphs
 
const ImFontGlyphFallbackGlyph
 
ImFontAtlasContainerAtlas
 
const ImFontConfigConfigData
 
short ConfigDataCount
 
ImWchar FallbackChar
 
ImWchar EllipsisChar
 
short EllipsisCharCount
 
float EllipsisWidth
 
float EllipsisCharStep
 
bool DirtyLookupTables
 
float Scale
 
float Ascent
 
float Descent
 
int MetricsTotalSurface
 
ImU8 Used4kPagesMap [(0xFFFF+1)/4096/8]
 

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