QFontEnginePlugin Class

The QFontEnginePlugin class is the base class for font engine factory plugins in Qt for Embedded Linux. 更多...

頭: #include <QFontEnginePlugin>
Since: Qt 4.3
繼承: QObject

該類在開發且可能改變。

公共函數

QFontEnginePlugin (const QString & foundry , QObject * parent = 0)
~QFontEnginePlugin ()

重實現公共函數

virtual QList<QFontEngineInfo> availableFontEngines () const = 0
virtual QAbstractFontEngine * create (const QFontEngineInfo & info ) = 0
virtual QStringList keys () const

額外繼承成員

詳細描述

The QFontEnginePlugin class is the base class for font engine factory plugins in Qt for Embedded Linux.

QFontEnginePlugin is provided by font engine plugins to create instances of subclasses of QAbstractFontEngine .

The member functions create () 和 availableFontEngines () must be implemented.

另請參閱 QAbstractFontEngine and QFontEngineInfo .

成員函數文檔編製

QFontEnginePlugin:: QFontEnginePlugin (const QString & foundry , QObject * parent = 0)

Creates a font engine plugin that creates font engines with the specified foundry and parent .

QFontEnginePlugin:: ~QFontEnginePlugin ()

Destroys this font engine plugin.

[pure virtual] QList < QFontEngineInfo > QFontEnginePlugin:: availableFontEngines () const

Implemented in subclasses to return a list of QFontEngineInfo objects that represents all font engines the plugin can create.

[pure virtual] QAbstractFontEngine * QFontEnginePlugin:: create (const QFontEngineInfo & info )

Implemented in subclasses to create a new font engine that provides a font that matches info .

[虛擬] QStringList QFontEnginePlugin:: keys () const

Returns a list of foundries the font engine plugin provides. The default implementation returns the foundry specified with the constructor.