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

This class is used in conjunction with the QPainter::drawPixmapFragments() function to specify how a pixmap, or sub-rect of a pixmap, is drawn. More...

Inheritance diagram for QtGui.QPainter.PixmapFragment:
Collaboration diagram for QtGui.QPainter.PixmapFragment:

Public Member Functions

 PixmapFragment ()
 
 PixmapFragment (QPainter.PixmapFragment copy)
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Static Public Member Functions

static QPainter.PixmapFragment Create (QPointF pos, QRectF sourceRect, double scaleX=1, double scaleY=1, double rotation=0, double opacity=1)
 
 

Protected Member Functions

 PixmapFragment (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 
new double Height [get, set]
 
 
new double Opacity [get, set]
 
 
new double Rotation [get, set]
 
 
new double ScaleX [get, set]
 
 
new double ScaleY [get, set]
 
 
new double SourceLeft [get, set]
 
 
new double SourceTop [get, set]
 
 
new double Width [get, set]
 
 
new double X [get, set]
 
 
new double Y [get, set]
 
 

Detailed Description

This class is used in conjunction with the QPainter::drawPixmapFragments() function to specify how a pixmap, or sub-rect of a pixmap, is drawn.

The sourceLeft, sourceTop, width and height variables are used as a source rectangle within the pixmap passed into the QPainter::drawPixmapFragments() function. The variables x, y, width and height are used to calculate the target rectangle that is drawn. x and y denotes the center of the target rectangle. The width and height in the target rectangle is scaled by the scaleX and scaleY values. The resulting target rectangle is then rotated rotation degrees around the x, y center point.

See also QPainter::drawPixmapFragments().

Constructor & Destructor Documentation

QtGui.QPainter.PixmapFragment.PixmapFragment ( System.Type  dummy)
protected
QtGui.QPainter.PixmapFragment.PixmapFragment ( )
QtGui.QPainter.PixmapFragment.PixmapFragment ( QPainter.PixmapFragment  copy)

Member Function Documentation

static QPainter.PixmapFragment QtGui.QPainter.PixmapFragment.Create ( QPointF  pos,
QRectF  sourceRect,
double  scaleX = 1,
double  scaleY = 1,
double  rotation = 0,
double  opacity = 1 
)
static

This is a convenience function that returns a QPainter::PixmapFragment that is initialized with the pos, sourceRect, scaleX, scaleY, rotation, opacity parameters.

This function was introduced in Qt 4.7.

virtual void QtGui.QPainter.PixmapFragment.CreateProxy ( )
virtual
new void QtGui.QPainter.PixmapFragment.Dispose ( )

Member Data Documentation

SmokeInvocation QtGui.QPainter.PixmapFragment.interceptor
protected

Property Documentation

new double QtGui.QPainter.PixmapFragment.Height
getset

This variable holds the height of the source rectangle and is used to calculate the height of the target rectangle.

new double QtGui.QPainter.PixmapFragment.Opacity
getset

This variable holds the opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaque.

new double QtGui.QPainter.PixmapFragment.Rotation
getset

This variable holds the rotation of the target rectangle in degrees. The target rectangle is rotated after it has been scaled.

new double QtGui.QPainter.PixmapFragment.ScaleX
getset

This variable holds the horizontal scale of the target rectangle.

new double QtGui.QPainter.PixmapFragment.ScaleY
getset

This variable holds the vertical scale of the target rectangle.

virtual System.IntPtr QtGui.QPainter.PixmapFragment.SmokeObject
getset
new double QtGui.QPainter.PixmapFragment.SourceLeft
getset

This variable holds the left coordinate of the source rectangle.

new double QtGui.QPainter.PixmapFragment.SourceTop
getset

This variable holds the top coordinate of the source rectangle.

new double QtGui.QPainter.PixmapFragment.Width
getset

This variable holds the width of the source rectangle and is used to calculate the width of the target rectangle.

new double QtGui.QPainter.PixmapFragment.X
getset

This variable holds the x coordinate of center point in the target rectangle.

new double QtGui.QPainter.PixmapFragment.Y
getset

This variable holds the y coordinate of the center point in the target rectangle.