1999-09-06 05:36:21 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: fontenum.h
|
|
|
|
// Purpose: wxFontEnumerator class for Windows
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_FONTENUM_H_
|
|
|
|
#define _WX_FONTENUM_H_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-09-06 05:36:21 -04:00
|
|
|
#pragma interface "fontenum.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxFontEnumerator: for gathering font information
|
|
|
|
*/
|
|
|
|
|
|
|
|
class wxFontEnumerator: public wxObject
|
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxFontEnumerator)
|
|
|
|
public:
|
|
|
|
wxFontEnumerator() {};
|
|
|
|
|
|
|
|
// Enumerate the fonts.
|
|
|
|
bool Enumerate();
|
|
|
|
|
|
|
|
// Stop enumeration if FALSE is returned.
|
|
|
|
// By default, the enumerator stores the facenames in a list for
|
|
|
|
// retrieval via GetFacenames().
|
|
|
|
virtual bool OnFont(const wxFont& font);
|
|
|
|
|
|
|
|
// Return the list of facenames.
|
|
|
|
wxStringList& GetFacenames() { return (wxStringList&) m_faceNames; }
|
|
|
|
protected:
|
|
|
|
wxStringList m_faceNames;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_FONTENUM_H_
|
|
|
|
|