Ylva And Malin
Public Types | Public Member Functions | Data Fields
ImFont Struct Reference

#include <imgui.h>

Collaboration diagram for ImFont:
Collaboration graph

Public Types

typedef ImFontGlyph Glyph
 

Public Member Functions

 ImFont ()
 
 ~ImFont ()
 
void ClearOutputData ()
 
void BuildLookupTable ()
 
const ImFontGlyphFindGlyph (ImWchar c) const
 
const ImFontGlyphFindGlyphNoFallback (ImWchar c) const
 
void SetFallbackChar (ImWchar c)
 
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, ImVec2 pos, ImU32 col, unsigned short c) const
 
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
 
void GrowIndex (int new_size)
 
void AddGlyph (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)
 

Data Fields

float FontSize
 
float Scale
 
ImVec2 DisplayOffset
 
ImVector< ImFontGlyphGlyphs
 
ImVector< float > IndexAdvanceX
 
ImVector< unsigned short > IndexLookup
 
const ImFontGlyphFallbackGlyph
 
float FallbackAdvanceX
 
ImWchar FallbackChar
 
short ConfigDataCount
 
ImFontConfigConfigData
 
ImFontAtlasContainerAtlas
 
float Ascent
 
float Descent
 
bool DirtyLookupTables
 
int MetricsTotalSurface
 

Member Typedef Documentation

Constructor & Destructor Documentation

ImFont::ImFont ( )
ImFont::~ImFont ( )

Member Function Documentation

void ImFont::AddGlyph ( ImWchar  c,
float  x0,
float  y0,
float  x1,
float  y1,
float  u0,
float  v0,
float  u1,
float  v1,
float  advance_x 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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

Here is the call graph for this function:

void ImFont::ClearOutputData ( )

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

float ImFont::GetCharAdvance ( ImWchar  c) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

const char* ImFont::GetDebugName ( ) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFont::GrowIndex ( int  new_size)
bool ImFont::IsLoaded ( ) const
inline

Here is the caller graph for this function:

void ImFont::RenderChar ( ImDrawList draw_list,
float  size,
ImVec2  pos,
ImU32  col,
unsigned short  c 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void ImFont::SetFallbackChar ( ImWchar  c)

Field Documentation

float ImFont::Ascent
ImFontConfig* ImFont::ConfigData
short ImFont::ConfigDataCount
ImFontAtlas* ImFont::ContainerAtlas
float ImFont::Descent
bool ImFont::DirtyLookupTables
ImVec2 ImFont::DisplayOffset
float ImFont::FallbackAdvanceX
ImWchar ImFont::FallbackChar
const ImFontGlyph* ImFont::FallbackGlyph
float ImFont::FontSize
ImVector<ImFontGlyph> ImFont::Glyphs
ImVector<float> ImFont::IndexAdvanceX
ImVector<unsigned short> ImFont::IndexLookup
int ImFont::MetricsTotalSurface
float ImFont::Scale

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