PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
ImFont Struct Reference

Detailed Description

Definition at line 2868 of file imgui.h.

#include <imgui.h>

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< ImWcharIndexLookup
 
ImVector< ImFontGlyphGlyphs
 
const ImFontGlyphFallbackGlyph
 
ImFontAtlasContainerAtlas
 
const ImFontConfigConfigData
 
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 ( )

◆ ~ImFont()

IMGUI_API ImFont::~ImFont ( )

Member Function Documentation

◆ 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 )

◆ AddRemapChar()

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

◆ BuildLookupTable()

IMGUI_API void ImFont::BuildLookupTable ( )

◆ 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

◆ CalcWordWrapPositionA()

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

◆ ClearOutputData()

IMGUI_API void ImFont::ClearOutputData ( )

◆ FindGlyph()

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

◆ FindGlyphNoFallback()

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

◆ GetCharAdvance()

float ImFont::GetCharAdvance ( ImWchar c) const
inline

Definition at line 2898 of file imgui.h.

◆ GetDebugName()

const char * ImFont::GetDebugName ( ) const
inline

Definition at line 2900 of file imgui.h.

◆ GrowIndex()

IMGUI_API void ImFont::GrowIndex ( int new_size)

◆ IsGlyphRangeUnused()

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

◆ IsLoaded()

bool ImFont::IsLoaded ( ) const
inline

Definition at line 2899 of file imgui.h.

◆ RenderChar()

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

◆ RenderText()

IMGUI_API 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

◆ SetGlyphVisible()

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

Member Data Documentation

◆ Ascent

float ImFont::Ascent

Definition at line 2889 of file imgui.h.

◆ ConfigData

const ImFontConfig* ImFont::ConfigData

Definition at line 2882 of file imgui.h.

◆ ConfigDataCount

short ImFont::ConfigDataCount

Definition at line 2883 of file imgui.h.

◆ ContainerAtlas

ImFontAtlas* ImFont::ContainerAtlas

Definition at line 2881 of file imgui.h.

◆ Descent

float ImFont::Descent

Definition at line 2889 of file imgui.h.

◆ DirtyLookupTables

bool ImFont::DirtyLookupTables

Definition at line 2887 of file imgui.h.

◆ DotChar

ImWchar ImFont::DotChar

Definition at line 2886 of file imgui.h.

◆ EllipsisChar

ImWchar ImFont::EllipsisChar

Definition at line 2885 of file imgui.h.

◆ FallbackAdvanceX

float ImFont::FallbackAdvanceX

Definition at line 2872 of file imgui.h.

◆ FallbackChar

ImWchar ImFont::FallbackChar

Definition at line 2884 of file imgui.h.

◆ FallbackGlyph

const ImFontGlyph* ImFont::FallbackGlyph

Definition at line 2878 of file imgui.h.

◆ FontSize

float ImFont::FontSize

Definition at line 2873 of file imgui.h.

◆ Glyphs

ImVector<ImFontGlyph> ImFont::Glyphs

Definition at line 2877 of file imgui.h.

◆ IndexAdvanceX

ImVector<float> ImFont::IndexAdvanceX

Definition at line 2871 of file imgui.h.

◆ IndexLookup

ImVector<ImWchar> ImFont::IndexLookup

Definition at line 2876 of file imgui.h.

◆ MetricsTotalSurface

int ImFont::MetricsTotalSurface

Definition at line 2890 of file imgui.h.

◆ Scale

float ImFont::Scale

Definition at line 2888 of file imgui.h.

◆ Used4kPagesMap

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

Definition at line 2891 of file imgui.h.


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