QIconEngineV2 Class ReferenceThe QIconEngineV2 class provides an abstract base class for QIcon renderers. Далее... #include <QIconEngineV2> Inherits: QIconEngine. Класс был добавлен в Qt 4.3. Открытые типы
Открытые функции
Подробное описаниеThe QIconEngineV2 class provides an abstract base class for QIcon renderers. An icon engine renders QIcons. With icon engines, you can customize icons. Qt provides a default engine that makes icons adhere to the current style by scaling the icons and providing a disabled appearance. An engine is installed on an icon either through a QIcon constructor or through a QIconEnginePluginV2. The plugins are used by Qt if a specific engine is not given when the icon is created. See the QIconEngineV2 class description to learn how to create icon engine plugins. An icon engine provides the rendering functions for a QIcon. Каждая пиктограмма имеет механизм пиктограмм, который отвечает за отрисовку пиктограммы с требуемым размером, режимом и состоянием. QIconEngineV2 extends the API of QIconEngine to allow streaming of the icon engine contents, and should be used instead of QIconEngine for implementing new icon engines. See also QIconEnginePluginV2. Описание типов-членовenum QIconEngineV2::IconEngineHookThese enum values are used for virtual_hook() to allow additional queries to icon engine without breaking binary compatibility.
Это перечисление было введено или модифицировано в Qt 4.5. See also virtual_hook(). Описание функций-членовQList<QSize> QIconEngineV2::availableSizes ( QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off )Returns sizes of all images that are contained in the engine for the specific mode and state. Note: This is a helper method and the actual work is done by virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines. Эта функция была введена в Qt 4.5. QIconEngineV2 * QIconEngineV2::clone () const [virtual]Returns a clone of this icon engine. QString QIconEngineV2::iconName ()Returns the name used to create the engine, if available. Note: This is a helper method and the actual work is done by virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines. Эта функция была введена в Qt 4.7. QString QIconEngineV2::key () const [virtual]Returns a key that identifies this icon engine. bool QIconEngineV2::read ( QDataStream & in ) [virtual]Reads icon engine contents from the QDataStream in. Returns true if the contents were read; otherwise returns false. QIconEngineV2's default implementation always return false. void QIconEngineV2::virtual_hook ( int id, void * data ) [virtual]Additional method to allow extending QIconEngineV2 without adding new virtual methods (and without breaking binary compatibility). The actual action and format of data depends on id argument which is in fact a constant from IconEngineHook enum. Эта функция была введена в Qt 4.5. See also IconEngineHook. bool QIconEngineV2::write ( QDataStream & out ) const [virtual]Writes the contents of this engine to the QDataStream out. Returns true if the contents were written; otherwise returns false. QIconEngineV2's default implementation always return false. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |