Files
Aerofoil/GpShell/GpFontHandlerFactory.h

20 lines
474 B
C
Raw Normal View History

#pragma once
#include "EGpFontHandlerType.h"
2020-09-12 14:01:51 -04:00
struct IGpFontHandler;
struct GpFontHandlerProperties;
class GpFontHandlerFactory
{
public:
typedef IGpFontHandler *(*FactoryFunc_t)(const GpFontHandlerProperties &properties);
static IGpFontHandler *CreateFontHandler(const GpFontHandlerProperties &properties);
static void RegisterFontHandlerFactory(EGpFontHandlerType type, FactoryFunc_t func);
private:
static FactoryFunc_t ms_registry[EGpFontHandlerType_Count];
};