Files
Aerofoil/GpShell/GpFontHandlerFactory.h
2020-09-12 14:01:51 -04:00

20 lines
490 B
C++

#pragma once
#include "EGpFontHandlerType.h"
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];
};