]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/fontenum.h
compilation fix after wxCmdLineEntryDesc changes
[wxWidgets.git] / include / wx / msw / fontenum.h
CommitLineData
543f08a6 1/////////////////////////////////////////////////////////////////////////////
dd74a8f6 2// Name: wx/msw/fontenum.h
543f08a6
JS
3// Purpose: wxFontEnumerator class for Windows
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
543f08a6
JS
10/////////////////////////////////////////////////////////////////////////////
11
dd74a8f6
WS
12#ifndef _WX_FONTENUM_MSW_H_
13#define _WX_FONTENUM_MSW_H_
543f08a6 14
543f08a6
JS
15/*
16 * wxFontEnumerator: for gathering font information
17 */
18
19class wxFontEnumerator: public wxObject
20{
21DECLARE_CLASS(wxFontEnumerator)
22public:
6fb99eb3 23 wxFontEnumerator() {}
543f08a6
JS
24
25 // Enumerate the fonts.
26 bool Enumerate();
27
cbe874bd 28 // Stop enumeration if false is returned.
543f08a6
JS
29 // By default, the enumerator stores the facenames in a list for
30 // retrieval via GetFacenames().
31 virtual bool OnFont(const wxFont& font);
32
33 // Return the list of facenames.
34 wxStringList& GetFacenames() { return (wxStringList&) m_faceNames; }
35protected:
36 wxStringList m_faceNames;
37};
38
39#endif
dd74a8f6 40 // _WX_FONTENUM_MSW_H_