Cogs.Core
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Cogs::Core::GuiFont Struct Reference

Public Member Functions

COGSCORE_DLL_API void load (const Context *context, const std::string &name, float size, const ImWchar *glyphRanges)
 
COGSCORE_DLL_API void reloadWithNewGlyphs (const Context *context, const ImWchar *glyphRanges)
 
COGSCORE_DLL_API ImFont * find (float size, float &scale) const
 

Public Attributes

ImFontAtlas fontAtlas
 
ImFont * font [cNoOfFontSizes] = {}
 
float initialSize = 0.0f
 
std::string path
 

Static Public Attributes

static constexpr int cNoOfFontSizes = 4
 

Detailed Description

Definition at line 46 of file ImguiRenderer.h.

Member Function Documentation

◆ find()

ImFont * Cogs::Core::GuiFont::find ( float  size,
float &  scale 
) const

Definition at line 804 of file ImguiRenderer.cpp.

◆ load()

void Cogs::Core::GuiFont::load ( const Context context,
const std::string &  name,
float  size,
const ImWchar *  glyphRanges 
)

Definition at line 773 of file ImguiRenderer.cpp.

◆ reloadWithNewGlyphs()

void Cogs::Core::GuiFont::reloadWithNewGlyphs ( const Context context,
const ImWchar *  glyphRanges 
)

Definition at line 800 of file ImguiRenderer.cpp.

Member Data Documentation

◆ cNoOfFontSizes

constexpr int Cogs::Core::GuiFont::cNoOfFontSizes = 4
staticconstexpr

Definition at line 48 of file ImguiRenderer.h.

◆ font

ImFont* Cogs::Core::GuiFont::font[cNoOfFontSizes] = {}

Definition at line 51 of file ImguiRenderer.h.

◆ fontAtlas

ImFontAtlas Cogs::Core::GuiFont::fontAtlas

Definition at line 50 of file ImguiRenderer.h.

◆ initialSize

float Cogs::Core::GuiFont::initialSize = 0.0f

Definition at line 52 of file ImguiRenderer.h.

◆ path

std::string Cogs::Core::GuiFont::path

Definition at line 53 of file ImguiRenderer.h.


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