2004-10-19 09:40:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-01-18 16:14:27 -05:00
|
|
|
// Name: wx/palmos/fontenum.h
|
2004-10-19 09:40:30 -04:00
|
|
|
// Purpose: wxFontEnumerator class for Palm OS
|
2005-01-18 16:14:27 -05:00
|
|
|
// Author: William Osborne - minimal working wxPalmOS port
|
2004-10-19 09:40:30 -04:00
|
|
|
// Modified by:
|
|
|
|
// Created: 10/13/04
|
2005-01-18 16:14:27 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-10-19 09:40:30 -04:00
|
|
|
// Copyright: (c) William Osborne
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_FONTENUM_H_
|
|
|
|
#define _WX_FONTENUM_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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_
|
|
|
|
|