MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::RibbonFontManager Class Reference

#include <MRRibbonFontManager.h>

Public Types

enum class  FontType {
  FontType::Default , FontType::Small , FontType::Middle , FontType::SemiBold ,
  FontType::Icons , FontType::Big , FontType::BigSemiBold , FontType::Headline ,
  FontType::Monospace , FontType::Count
}
 Font types used in current design. More...
 
enum class  FontFile {
  FontFile::Regular , FontFile::RegularSC , FontFile::SemiBold , FontFile::Monospace ,
  FontFile::Icons , FontFile::Count
}
 Unique fonts that are used for different FontTypes. More...
 
using FontFilePaths = std::array<std::filesystem::path, size_t( FontFile::Count )>
 

Public Member Functions

MRVIEWER_API RibbonFontManager ()
 
MRVIEWER_API void loadAllFonts (ImWchar *charRanges)
 load all fonts using in ribbon menu
 
MRVIEWER_API ImFont * getFontByType (FontType type) const
 get font by font type
 
MRVIEWER_API std::filesystem::path getMenuFontPath () const
 get ribbon menu font path
 
const FontFilePathsgetAllFontPaths () const
 returns list of all font paths
 
MRVIEWER_API void setNewFontPaths (const FontFilePaths &paths)
 

Static Public Member Functions

static MRVIEWER_API float getFontSizeByType (FontType type)
 get font size by font type
 
static MRVIEWER_API ImFont * getFontByTypeStatic (FontType type)
 
static MRVIEWER_API FontAndSize getFontAndSizeByTypeStatic (FontType type)
 
static MRVIEWER_API void initFontManagerInstance (RibbonFontManager *ribbonFontManager)
 

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