]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/fontenum.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxFontEnumerator class for Windows 
   4 // Author:      Julian Smart 
   8 // Copyright:   (c) Julian Smart 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  12 #ifndef _WX_FONTENUM_H_ 
  13 #define _WX_FONTENUM_H_ 
  16 #pragma interface "fontenum.h" 
  20  * wxFontEnumerator: for gathering font information 
  23 class wxFontEnumerator
: public wxObject
 
  25 DECLARE_CLASS(wxFontEnumerator
) 
  27     wxFontEnumerator() {}; 
  29     // Enumerate the fonts. 
  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
); 
  37     // Return the list of facenames. 
  38     wxStringList
& GetFacenames() { return (wxStringList
&) m_faceNames
; } 
  40     wxStringList    m_faceNames
;