Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
18
Src/Wasabi/api/font/FontSvcEnum.h
Normal file
18
Src/Wasabi/api/font/FontSvcEnum.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <bfc/string/StringW.h>
|
||||
#include <api/service/svc_enum.h>
|
||||
|
||||
class FontSvcEnum : public SvcEnumT<svc_font> {
|
||||
public:
|
||||
FontSvcEnum(const wchar_t *_svc_name = NULL) : svc_name(_svc_name) {}
|
||||
protected:
|
||||
virtual int testService(svc_font *svc)
|
||||
{
|
||||
if (!svc_name.len())
|
||||
return 1; // blank name returns all services.
|
||||
return (!WCSICMP(svc->getFontSvcName(),svc_name));
|
||||
}
|
||||
private:
|
||||
StringW svc_name;
|
||||
};
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue