Qyoto  4.0.6
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QPaintEngineState Class Reference

The QPaintEngineState class provides information about the active paint engine's current state. More...

Inheritance diagram for QtGui.QPaintEngineState:
Collaboration diagram for QtGui.QPaintEngineState:

Public Member Functions

 QPaintEngineState ()
 
 QPaintEngineState (QPaintEngineState copy)
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Protected Member Functions

 QPaintEngineState (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

QBrush BackgroundBrush [get]
 
 
Qt.BGMode BackgroundMode [get]
 
 
QBrush Brush [get]
 
 
bool BrushNeedsResolving [get]
 
 
QPointF BrushOrigin [get]
 
 
Qt.ClipOperation ClipOperation [get]
 
 
QPainterPath ClipPath [get]
 
 
QRegion ClipRegion [get]
 
 
QPainter.CompositionMode CompositionMode [get]
 
 
QFont Font [get]
 
 
bool IsClipEnabled [get]
 
 
QMatrix Matrix [get]
 
 
double Opacity [get]
 
 
QPainter Painter [get]
 
 
QPen Pen [get]
 
 
bool PenNeedsResolving [get]
 
 
QPainter.RenderHint RenderHints [get]
 
 
QPaintEngine.DirtyFlag State [get]
 
 
QTransform Transform [get]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new QPaintEngine.DirtyFlag DirtyFlags [get, set]
 

Detailed Description

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:

Property FlagCurrent Property Value

QPaintEngine::DirtyBackground backgroundBrush()

QPaintEngine::DirtyBackgroundMode backgroundMode()

QPaintEngine::DirtyBrush brush()

QPaintEngine::DirtyBrushOrigin brushOrigin()

QPaintEngine::DirtyClipRegion or QPaintEngine::DirtyClipPath clipOperation()

QPaintEngine::DirtyClipPath clipPath()

QPaintEngine::DirtyClipRegion clipRegion()

QPaintEngine::DirtyCompositionMode compositionMode()

QPaintEngine::DirtyFont font()

QPaintEngine::DirtyTransform transform()

QPaintEngine::DirtyClipEnabled isClipEnabled()

QPaintEngine::DirtyPen pen()

QPaintEngine::DirtyHints renderHints()

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.

Constructor & Destructor Documentation

QtGui.QPaintEngineState.QPaintEngineState ( System.Type  dummy)
protected
QtGui.QPaintEngineState.QPaintEngineState ( )
QtGui.QPaintEngineState.QPaintEngineState ( QPaintEngineState  copy)

Member Function Documentation

virtual void QtGui.QPaintEngineState.CreateProxy ( )
virtual
new void QtGui.QPaintEngineState.Dispose ( )

Member Data Documentation

SmokeInvocation QtGui.QPaintEngineState.interceptor
protected

Property Documentation

QBrush QtGui.QPaintEngineState.BackgroundBrush
get

Returns 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.

See also state() and QPaintEngine::updateState().

Qt.BGMode QtGui.QPaintEngineState.BackgroundMode
get

Returns 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.

See also state() and QPaintEngine::updateState().

QBrush QtGui.QPaintEngineState.Brush
get

Returns 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.

See also state() and QPaintEngine::updateState().

bool QtGui.QPaintEngineState.BrushNeedsResolving
get

Returns 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).

This function was introduced in Qt 4.3.

QPointF QtGui.QPaintEngineState.BrushOrigin
get

Returns 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.

See also state() and QPaintEngine::updateState().

Qt.ClipOperation QtGui.QPaintEngineState.ClipOperation
get

Returns 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.

See also state() and QPaintEngine::updateState().

QPainterPath QtGui.QPaintEngineState.ClipPath
get

Returns 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.

See also state() and QPaintEngine::updateState().

QRegion QtGui.QPaintEngineState.ClipRegion
get

Returns 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.

See also state() and QPaintEngine::updateState().

QPainter.CompositionMode QtGui.QPaintEngineState.CompositionMode
get

Returns 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.

See also state() and QPaintEngine::updateState().

new QPaintEngine.DirtyFlag QtGui.QPaintEngineState.DirtyFlags
getsetprotected
QFont QtGui.QPaintEngineState.Font
get

Returns 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.

See also state() and QPaintEngine::updateState().

bool QtGui.QPaintEngineState.IsClipEnabled
get

Returns 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.

See also state() and QPaintEngine::updateState().

QMatrix QtGui.QPaintEngineState.Matrix
get

Returns the matrix in the current paint engine state.

Note: It is advisable to use transform() instead of this function to preserve the properties of perspective transformations.

This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyTransform flag.

This function was introduced in Qt 4.2.

See also state() and QPaintEngine::updateState().

double QtGui.QPaintEngineState.Opacity
get

Returns the opacity in the current paint engine state.

This function was introduced in Qt 4.2.

QPainter QtGui.QPaintEngineState.Painter
get

Returns a pointer to the painter currently updating the paint engine.

QPen QtGui.QPaintEngineState.Pen
get

Returns 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.

See also state() and QPaintEngine::updateState().

bool QtGui.QPaintEngineState.PenNeedsResolving
get

Returns 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).

This function was introduced in Qt 4.3.

QPainter.RenderHint QtGui.QPaintEngineState.RenderHints
get

Returns 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.

See also state() and QPaintEngine::updateState().

virtual System.IntPtr QtGui.QPaintEngineState.SmokeObject
getset
QPaintEngine.DirtyFlag QtGui.QPaintEngineState.State
get

Returns 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 QtGui.QPaintEngineState.Transform
get

Returns the matrix in the current paint engine state.

This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyTransform flag.

This function was introduced in Qt 4.3.

See also state() and QPaintEngine::updateState().