ffecfa5aeb
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: fontenum.h
|
|
// Purpose: wxFontEnumerator class for Palm OS
|
|
// Author: William Osborne
|
|
// Modified by:
|
|
// Created: 10/13/04
|
|
// RCS-ID: $Id:
|
|
// Copyright: (c) William Osborne
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_FONTENUM_H_
|
|
#define _WX_FONTENUM_H_
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
#pragma interface "fontenum.h"
|
|
#endif
|
|
|
|
/*
|
|
* 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_
|
|
|