Classes | Public Member Functions | Public Attributes | List of all members
ImFont Struct Reference

#include <imgui.h>


struct  Glyph

Public Member Functions

IMGUI_API void AddRemapChar (ImWchar dst, ImWchar src, bool overwrite_dst=true)
IMGUI_API void BuildLookupTable ()
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 Clear ()
IMGUI_API const GlyphFindGlyph (ImWchar c) const
float GetCharAdvance (ImWchar c) const
IMGUI_API void GrowIndex (int new_size)
bool IsLoaded () const
IMGUI_API void RenderChar (ImDrawList *draw_list, float size, ImVec2 pos, ImU32 col, unsigned short 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 SetFallbackChar (ImWchar c)
IMGUI_API ~ImFont ()

Public Attributes

float Ascent
short ConfigDataCount
float Descent
ImVec2 DisplayOffset
ImWchar FallbackChar
const GlyphFallbackGlyph
float FallbackXAdvance
float FontSize
ImVector< GlyphGlyphs
ImVector< short > IndexLookup
ImVector< float > IndexXAdvance
float Scale

Detailed Description

Definition at line 1392 of file imgui.h.

Constructor & Destructor Documentation

ImFont::ImFont ( )

Definition at line 1657 of file imgui_draw.cpp.

ImFont::~ImFont ( )

Definition at line 1664 of file imgui_draw.cpp.

Member Function Documentation

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

Definition at line 1752 of file imgui_draw.cpp.

void ImFont::BuildLookupTable ( )

Definition at line 1692 of file imgui_draw.cpp.

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

Definition at line 1875 of file imgui_draw.cpp.

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

Definition at line 1778 of file imgui_draw.cpp.

void ImFont::Clear ( )

Definition at line 1677 of file imgui_draw.cpp.

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

Definition at line 1767 of file imgui_draw.cpp.

float ImFont::GetCharAdvance ( ImWchar  c) const

Definition at line 1426 of file imgui.h.

void ImFont::GrowIndex ( int  new_size)

Definition at line 1737 of file imgui_draw.cpp.

bool ImFont::IsLoaded ( ) const

Definition at line 1427 of file imgui.h.

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

Definition at line 1969 of file imgui_draw.cpp.

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

Definition at line 1985 of file imgui_draw.cpp.

void ImFont::SetFallbackChar ( ImWchar  c)

Definition at line 1731 of file imgui_draw.cpp.

Member Data Documentation

float ImFont::Ascent

Definition at line 1417 of file imgui.h.

ImFontConfig* ImFont::ConfigData

Definition at line 1415 of file imgui.h.

short ImFont::ConfigDataCount

Definition at line 1414 of file imgui.h.

ImFontAtlas* ImFont::ContainerAtlas

Definition at line 1416 of file imgui.h.

float ImFont::Descent

Definition at line 1417 of file imgui.h.

ImVec2 ImFont::DisplayOffset

Definition at line 1405 of file imgui.h.

ImWchar ImFont::FallbackChar

Definition at line 1411 of file imgui.h.

const Glyph* ImFont::FallbackGlyph

Definition at line 1409 of file imgui.h.

float ImFont::FallbackXAdvance

Definition at line 1410 of file imgui.h.

float ImFont::FontSize

Definition at line 1403 of file imgui.h.

ImVector<Glyph> ImFont::Glyphs

Definition at line 1406 of file imgui.h.

ImVector<short> ImFont::IndexLookup

Definition at line 1408 of file imgui.h.

ImVector<float> ImFont::IndexXAdvance

Definition at line 1407 of file imgui.h.

float ImFont::Scale

Definition at line 1404 of file imgui.h.

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

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32