Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
ImFont Struct Reference

#include <imgui.h>

Collaboration diagram for ImFont:
[legend]

Public Member Functions

IMGUI_API ImFont ()
 
IMGUI_API ~ImFont ()
 
IMGUI_API const ImFontGlyphFindGlyph (ImWchar c) const
 
IMGUI_API const ImFontGlyphFindGlyphNoFallback (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, const ImVec2 &pos, ImU32 col, ImWchar c) const
 
IMGUI_API 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
 
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< 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 [(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]
 

Constructor & Destructor Documentation

◆ ImFont()

ImFont::ImFont ( )

◆ ~ImFont()

ImFont::~ImFont ( )
Here is the call graph for this function:

Member Function Documentation

◆ AddGlyph()

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 )

◆ AddRemapChar()

void ImFont::AddRemapChar ( ImWchar dst,
ImWchar src,
bool overwrite_dst = true )
Here is the call graph for this function:

◆ BuildLookupTable()

void ImFont::BuildLookupTable ( )
Here is the call graph for this function:

◆ CalcTextSizeA()

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalcWordWrapPositionA()

const char * ImFont::CalcWordWrapPositionA ( float scale,
const char * text,
const char * text_end,
float wrap_width ) const
Here is the caller graph for this function:

◆ ClearOutputData()

void ImFont::ClearOutputData ( )
Here is the caller graph for this function:

◆ FindGlyph()

const ImFontGlyph * ImFont::FindGlyph ( ImWchar c) const
Here is the caller graph for this function:

◆ FindGlyphNoFallback()

const ImFontGlyph * ImFont::FindGlyphNoFallback ( ImWchar c) const
Here is the caller graph for this function:

◆ GetCharAdvance()

float ImFont::GetCharAdvance ( ImWchar c) const
inline
Here is the caller graph for this function:

◆ GetDebugName()

const char * ImFont::GetDebugName ( ) const
inline
Here is the caller graph for this function:

◆ GrowIndex()

void ImFont::GrowIndex ( int new_size)
Here is the caller graph for this function:

◆ IsGlyphRangeUnused()

bool ImFont::IsGlyphRangeUnused ( unsigned int c_begin,
unsigned int c_last )
Here is the caller graph for this function:

◆ IsLoaded()

bool ImFont::IsLoaded ( ) const
inline
Here is the caller graph for this function:

◆ RenderChar()

void ImFont::RenderChar ( ImDrawList * draw_list,
float size,
const ImVec2 & pos,
ImU32 col,
ImWchar c ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RenderText()

void ImFont::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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetGlyphVisible()

void ImFont::SetGlyphVisible ( ImWchar c,
bool visible )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Ascent

float ImFont::Ascent

◆ ConfigData

const ImFontConfig* ImFont::ConfigData

◆ ConfigDataCount

short ImFont::ConfigDataCount

◆ ContainerAtlas

ImFontAtlas* ImFont::ContainerAtlas

◆ Descent

float ImFont::Descent

◆ DirtyLookupTables

bool ImFont::DirtyLookupTables

◆ EllipsisChar

ImWchar ImFont::EllipsisChar

◆ EllipsisCharCount

short ImFont::EllipsisCharCount

◆ EllipsisCharStep

float ImFont::EllipsisCharStep

◆ EllipsisWidth

float ImFont::EllipsisWidth

◆ FallbackAdvanceX

float ImFont::FallbackAdvanceX

◆ FallbackChar

ImWchar ImFont::FallbackChar

◆ FallbackGlyph

const ImFontGlyph* ImFont::FallbackGlyph

◆ FontSize

float ImFont::FontSize

◆ Glyphs

ImVector<ImFontGlyph> ImFont::Glyphs

◆ IndexAdvanceX

ImVector<float> ImFont::IndexAdvanceX

◆ IndexLookup

ImVector<ImWchar> ImFont::IndexLookup

◆ MetricsTotalSurface

int ImFont::MetricsTotalSurface

◆ Scale

float ImFont::Scale

◆ Used4kPagesMap

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

The documentation for this struct was generated from the following files:
Untitled