mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-12 07:03:34 +00:00
21 lines
392 B
C++
21 lines
392 B
C++
#pragma once
|
|
#include <Graphics/Font.h>
|
|
|
|
namespace mlx
|
|
{
|
|
void FontRegistry::RegisterFont(std::shared_ptr<Font> font)
|
|
{
|
|
m_fonts_registry.insert(font);
|
|
}
|
|
|
|
void FontRegistry::UnregisterFont(std::shared_ptr<Font> font)
|
|
{
|
|
m_fonts_registry.erase(font);
|
|
}
|
|
|
|
bool FontRegistry::IsFontKnown(std::shared_ptr<Font> font)
|
|
{
|
|
return m_fonts_registry.find(font) != m_fonts_registry.end();
|
|
}
|
|
}
|