VR-Vantage
Loading...
Searching...
No Matches
ImFont Struct Reference

Public Member Functions

IMGUI_API ImFont ()
IMGUI_API ~ImFont ()
IMGUI_API const ImFontGlyph * FindGlyph (ImWchar c) const
IMGUI_API const ImFontGlyph * FindGlyphNoFallback (ImWchar c) const
float GetCharAdvance (ImWchar c) const
bool IsLoaded () const
const char * GetDebugName () const
IMGUI_API ImVec2 CalcTextSizeA (float size, float max_width, float wrap_width, const char *text_begin, const char *text_end=NULL, const char **remaining=NULL) const
IMGUI_API const char * CalcWordWrapPositionA (float scale, const char *text, const char *text_end, float wrap_width) const
IMGUI_API void RenderChar (ImDrawList *draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const
IMGUI_API void RenderText (ImDrawList *draw_list, float size, 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
IMGUI_API void BuildLookupTable ()
IMGUI_API void ClearOutputData ()
IMGUI_API void GrowIndex (int new_size)
IMGUI_API 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)
IMGUI_API void AddRemapChar (ImWchar dst, ImWchar src, bool overwrite_dst=true)
IMGUI_API void SetGlyphVisible (ImWchar c, bool visible)
IMGUI_API bool IsGlyphRangeUnused (unsigned int c_begin, unsigned int c_last)

Public Attributes

ImVector< float > IndexAdvanceX
float FallbackAdvanceX
float FontSize
ImVector< ImWchar > IndexLookup
ImVector< ImFontGlyph > Glyphs
const ImFontGlyph * FallbackGlyph
ImFontAtlas * ContainerAtlas
const ImFontConfig * ConfigData
short ConfigDataCount
ImWchar FallbackChar
ImWchar EllipsisChar
ImWchar DotChar
bool DirtyLookupTables
float Scale
float Ascent
float Descent
int MetricsTotalSurface
ImU8 Used4kPagesMap [(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]

Constructor & Destructor Documentation

◆ ImFont()

IMGUI_API ImFont::ImFont ( )

References IMGUI_API.

◆ ~ImFont()

IMGUI_API ImFont::~ImFont ( )

References IMGUI_API.

Member Function Documentation

◆ FindGlyph()

IMGUI_API const ImFontGlyph * ImFont::FindGlyph ( ImWchar c) const

References IMGUI_API.

◆ FindGlyphNoFallback()

IMGUI_API const ImFontGlyph * ImFont::FindGlyphNoFallback ( ImWchar c) const

References IMGUI_API.

◆ GetCharAdvance()

float ImFont::GetCharAdvance ( ImWchar c) const
inline

References FallbackAdvanceX, and IndexAdvanceX.

◆ IsLoaded()

bool ImFont::IsLoaded ( ) const
inline

References ContainerAtlas.

◆ GetDebugName()

const char * ImFont::GetDebugName ( ) const
inline

References ConfigData.

◆ CalcTextSizeA()

IMGUI_API ImVec2 ImFont::CalcTextSizeA ( float size,
float max_width,
float wrap_width,
const char * text_begin,
const char * text_end = NULL,
const char ** remaining = NULL ) const

References IMGUI_API.

◆ CalcWordWrapPositionA()

IMGUI_API const char * ImFont::CalcWordWrapPositionA ( float scale,
const char * text,
const char * text_end,
float wrap_width ) const

References IMGUI_API.

◆ RenderChar()

IMGUI_API void ImFont::RenderChar ( ImDrawList * draw_list,
float size,
ImVec2 pos,
ImU32 col,
ImWchar c ) const

References IMGUI_API.

◆ RenderText()

IMGUI_API void ImFont::RenderText ( ImDrawList * draw_list,
float size,
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

References IMGUI_API.

◆ BuildLookupTable()

IMGUI_API void ImFont::BuildLookupTable ( )

References IMGUI_API.

◆ ClearOutputData()

IMGUI_API void ImFont::ClearOutputData ( )

References IMGUI_API.

◆ GrowIndex()

IMGUI_API void ImFont::GrowIndex ( int new_size)

References IMGUI_API.

◆ AddGlyph()

IMGUI_API void ImFont::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 )

References IMGUI_API.

◆ AddRemapChar()

IMGUI_API void ImFont::AddRemapChar ( ImWchar dst,
ImWchar src,
bool overwrite_dst = true )

References dst, and IMGUI_API.

◆ SetGlyphVisible()

IMGUI_API void ImFont::SetGlyphVisible ( ImWchar c,
bool visible )

References IMGUI_API.

◆ IsGlyphRangeUnused()

IMGUI_API bool ImFont::IsGlyphRangeUnused ( unsigned int c_begin,
unsigned int c_last )

References IMGUI_API.

Member Data Documentation

◆ IndexAdvanceX

ImVector<float> ImFont::IndexAdvanceX

Referenced by GetCharAdvance().

◆ FallbackAdvanceX

float ImFont::FallbackAdvanceX

Referenced by GetCharAdvance().

◆ FontSize

float ImFont::FontSize

◆ IndexLookup

ImVector<ImWchar> ImFont::IndexLookup

◆ Glyphs

ImVector<ImFontGlyph> ImFont::Glyphs

◆ FallbackGlyph

const ImFontGlyph* ImFont::FallbackGlyph

◆ ContainerAtlas

ImFontAtlas* ImFont::ContainerAtlas

Referenced by IsLoaded().

◆ ConfigData

const ImFontConfig* ImFont::ConfigData

Referenced by GetDebugName().

◆ ConfigDataCount

short ImFont::ConfigDataCount

◆ FallbackChar

ImWchar ImFont::FallbackChar

◆ EllipsisChar

ImWchar ImFont::EllipsisChar

◆ DotChar

ImWchar ImFont::DotChar

◆ DirtyLookupTables

bool ImFont::DirtyLookupTables

◆ Scale

float ImFont::Scale

◆ Ascent

float ImFont::Ascent

◆ Descent

float ImFont::Descent

◆ MetricsTotalSurface

int ImFont::MetricsTotalSurface

◆ Used4kPagesMap

ImU8 ImFont::Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]

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