QPaintEngineState Class ReferenceThe QPaintEngineState class provides information about the active paint engine's current state. Далее... #include <QPaintEngineState> Замечание: Все функции в этом классе реентерабельны. This class was introduced in Qt 4.1. Открытые функции
Подробное описаниеThe QPaintEngineState class provides information about the active paint engine's current state. QPaintEngineState records which properties that have changed since the last time the paint engine was updated, as well as their current value. Which properties that have changed can at any time be retrieved using the state() function. This function returns an instance of the QPaintEngine::DirtyFlags type which stores an OR combination of QPaintEngine::DirtyFlag values. The QPaintEngine::DirtyFlag enum defines whether a property has changed since the last update or not. If a property is marked with a dirty flag, its current value can be retrieved using the corresponding get function: The QPaintEngineState class also provide the painter() function which returns a pointer to the painter that is currently updating the paint engine. An instance of this class, representing the current state of the active paint engine, is passed as argument to the QPaintEngine::updateState() function. The only situation in which you will have to use this class directly is when implementing your own paint engine. See also QPaintEngine. Описание функций-членовQBrush QPaintEngineState::backgroundBrush () constReturns the background brush in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyBackground flag. Смотрите также state() и QPaintEngine::updateState(). Qt::BGMode QPaintEngineState::backgroundMode () constReturns the background mode in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyBackgroundMode flag. Смотрите также state() и QPaintEngine::updateState(). QBrush QPaintEngineState::brush () constReturns the brush in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyBrush flag. Смотрите также state() и QPaintEngine::updateState(). bool QPaintEngineState::brushNeedsResolving () constReturns whether the coordinate of the fill have been specified as bounded by the current rendering operation and have to be resolved (about the currently rendered primitive). Эта функция была введена в Qt 4.3. QPointF QPaintEngineState::brushOrigin () constReturns the brush origin in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyBrushOrigin flag. Смотрите также state() и QPaintEngine::updateState(). Qt::ClipOperation QPaintEngineState::clipOperation () constReturns the clip operation in the current paint engine state. This variable should only be used when the state() returns a combination which includes either the QPaintEngine::DirtyClipPath or the QPaintEngine::DirtyClipRegion flag. Смотрите также state() и QPaintEngine::updateState(). QPainterPath QPaintEngineState::clipPath () constReturns the clip path in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyClipPath flag. Смотрите также state() и QPaintEngine::updateState(). QRegion QPaintEngineState::clipRegion () constReturns the clip region in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyClipRegion flag. Смотрите также state() и QPaintEngine::updateState(). QPainter::CompositionMode QPaintEngineState::compositionMode () constReturns the composition mode in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyCompositionMode flag. Смотрите также state() и QPaintEngine::updateState(). QFont QPaintEngineState::font () constReturns the font in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyFont flag. Смотрите также state() и QPaintEngine::updateState(). bool QPaintEngineState::isClipEnabled () constReturns whether clipping is enabled or not in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyClipEnabled flag. Смотрите также state() и QPaintEngine::updateState(). qreal QPaintEngineState::opacity () constReturns the opacity in the current paint engine state. Эта функция была введена в Qt 4.2. QPainter * QPaintEngineState::painter () constReturns a pointer to the painter currently updating the paint engine. QPen QPaintEngineState::pen () constReturns the pen in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyPen flag. Смотрите также state() и QPaintEngine::updateState(). bool QPaintEngineState::penNeedsResolving () constReturns whether the coordinate of the stroke have been specified as bounded by the current rendering operation and have to be resolved (about the currently rendered primitive). Эта функция была введена в Qt 4.3. QPainter::RenderHints QPaintEngineState::renderHints () constReturns the render hints in the current paint engine state. This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyHints flag. Смотрите также state() и QPaintEngine::updateState(). QPaintEngine::DirtyFlags QPaintEngineState::state () constReturns a combination of flags identifying the set of properties that need to be updated when updating the paint engine's state (i.e. during a call to the QPaintEngine::updateState() function). See also QPaintEngine::updateState(). QTransform QPaintEngineState::transform () constВозвращает матрицу в текущем состоянии механизма рисования. Эта переменная должна использоваться только когда state() возвратит комбинацию, которая включает в себя флаг QPaintEngine::DirtyTransform. Эта функция была введена в Qt 4.3. Смотрите также state() и QPaintEngine::updateState(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |