OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Classes | Public Member Functions | Public Attributes | List of all members
ImFont Struct Reference

#include <imgui.h>

Collaboration diagram for ImFont:
[legend]

Classes

struct  Glyph
 

Public Member Functions

IMGUI_API ImFont ()
 
IMGUI_API ~ImFont ()
 
IMGUI_API void Clear ()
 
IMGUI_API void BuildLookupTable ()
 
IMGUI_API const GlyphFindGlyph (unsigned short c) const
 
IMGUI_API void SetFallbackChar (ImWchar c)
 
IMGUI_API bool IsLoaded () 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 ImVec2 CalcTextSizeW (float size, float max_width, const ImWchar *text_begin, const ImWchar *text_end, const ImWchar **remaining=NULL) const
 
IMGUI_API void RenderText (float size, ImVec2 pos, ImU32 col, const ImVec4 &clip_rect, const char *text_begin, const char *text_end, ImDrawVert *&out_vertices, float wrap_width=0.0f, const ImVec2 *cpu_clip_max=NULL) const
 
IMGUI_API const char * CalcWordWrapPositionA (float scale, const char *text, const char *text_end, float wrap_width) const
 

Public Attributes

float FontSize
 
float Scale
 
ImVec2 DisplayOffset
 
ImWchar FallbackChar
 
ImFontAtlasContainerAtlas
 
ImVector< GlyphGlyphs
 
const GlyphFallbackGlyph
 
float FallbackXAdvance
 
ImVector< float > IndexXAdvance
 
ImVector< int > IndexLookup
 

Detailed Description

Definition at line 925 of file imgui.h.


Class Documentation

struct ImFont::Glyph

Definition at line 934 of file imgui.h.

Class Members
ImWchar Codepoint
signed short XAdvance
signed short Width
signed short Height
signed short XOffset
signed short YOffset
float U0
float V0
float U1
float V1

Constructor & Destructor Documentation

ImFont::ImFont ( )

Definition at line 7596 of file imgui.cpp.

IMGUI_API ImFont::~ImFont ( )
inline

Definition at line 951 of file imgui.h.

Member Function Documentation

void ImFont::Clear ( )

Definition at line 7603 of file imgui.cpp.

void ImFont::BuildLookupTable ( )

Definition at line 7700 of file imgui.cpp.

const ImFont::Glyph * ImFont::FindGlyph ( unsigned short  c) const

Definition at line 7750 of file imgui.cpp.

void ImFont::SetFallbackChar ( ImWchar  c)

Definition at line 7744 of file imgui.cpp.

IMGUI_API bool ImFont::IsLoaded ( ) const
inline

Definition at line 956 of file imgui.h.

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 8015 of file imgui.cpp.

ImVec2 ImFont::CalcTextSizeW ( float  size,
float  max_width,
const ImWchar text_begin,
const ImWchar text_end,
const ImWchar **  remaining = NULL 
) const

Definition at line 8101 of file imgui.cpp.

void ImFont::RenderText ( float  size,
ImVec2  pos,
ImU32  col,
const ImVec4 clip_rect,
const char *  text_begin,
const char *  text_end,
ImDrawVert *&  out_vertices,
float  wrap_width = 0.0f,
const ImVec2 cpu_clip_max = NULL 
) const

Definition at line 8145 of file imgui.cpp.

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

Definition at line 7926 of file imgui.cpp.

Member Data Documentation

float ImFont::FontSize

Definition at line 928 of file imgui.h.

float ImFont::Scale

Definition at line 929 of file imgui.h.

ImVec2 ImFont::DisplayOffset

Definition at line 930 of file imgui.h.

ImWchar ImFont::FallbackChar

Definition at line 931 of file imgui.h.

ImFontAtlas* ImFont::ContainerAtlas

Definition at line 942 of file imgui.h.

ImVector<Glyph> ImFont::Glyphs

Definition at line 943 of file imgui.h.

const Glyph* ImFont::FallbackGlyph

Definition at line 944 of file imgui.h.

float ImFont::FallbackXAdvance

Definition at line 945 of file imgui.h.

ImVector<float> ImFont::IndexXAdvance

Definition at line 946 of file imgui.h.

ImVector<int> ImFont::IndexLookup

Definition at line 947 of file imgui.h.


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