]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/fontenum.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/fontenum.h
3 // Purpose: wxFontEnumerator class for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_FONTENUM_PALM_H_
13 #define _WX_FONTENUM_PALM_H_
16 * wxFontEnumerator: for gathering font information
19 class wxFontEnumerator
: public wxObject
21 DECLARE_CLASS(wxFontEnumerator
)
23 wxFontEnumerator() {};
25 // Enumerate the fonts.
28 // Stop enumeration if FALSE is returned.
29 // By default, the enumerator stores the facenames in a list for
30 // retrieval via GetFacenames().
31 virtual bool OnFont(const wxFont
& font
);
33 // Return the list of facenames.
34 wxStringList
& GetFacenames() { return (wxStringList
&) m_faceNames
; }
36 wxStringList m_faceNames
;
40 // _WX_FONTENUM_PALM_H_