]>
Commit | Line | Data |
---|---|---|
543f08a6 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: fontenum.h | |
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 | ||
12 | #ifndef _WX_FONTENUM_H_ | |
13 | #define _WX_FONTENUM_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
543f08a6 JS |
16 | #pragma interface "fontenum.h" |
17 | #endif | |
18 | ||
19 | /* | |
20 | * wxFontEnumerator: for gathering font information | |
21 | */ | |
22 | ||
23 | class wxFontEnumerator: public wxObject | |
24 | { | |
25 | DECLARE_CLASS(wxFontEnumerator) | |
26 | public: | |
27 | wxFontEnumerator() {}; | |
28 | ||
29 | // Enumerate the fonts. | |
30 | bool Enumerate(); | |
31 | ||
32 | // Stop enumeration if FALSE is returned. | |
33 | // By default, the enumerator stores the facenames in a list for | |
34 | // retrieval via GetFacenames(). | |
35 | virtual bool OnFont(const wxFont& font); | |
36 | ||
37 | // Return the list of facenames. | |
38 | wxStringList& GetFacenames() { return (wxStringList&) m_faceNames; } | |
39 | protected: | |
40 | wxStringList m_faceNames; | |
41 | }; | |
42 | ||
43 | #endif | |
44 | // _WX_FONTENUM_H_ | |
45 |