Qt 4.8
Public Functions | Public Variables | List of all members
QGLTrapezoid Struct Reference

Public Functions

 QGLTrapezoid ()
 
 QGLTrapezoid (qreal top_, qreal bottom_, qreal topLeftX_, qreal topRightX_, qreal bottomLeftX_, qreal bottomRightX_)
 
const QGLTrapezoid translated (const QPointF &delta) const
 

Public Variables

qreal bottom
 
qreal bottomLeftX
 
qreal bottomRightX
 
qreal top
 
qreal topLeftX
 
qreal topRightX
 

Detailed Description

Definition at line 122 of file qpaintengine_opengl.cpp.

Constructors and Destructors

◆ QGLTrapezoid() [1/2]

QGLTrapezoid::QGLTrapezoid ( )
inline

Definition at line 124 of file qpaintengine_opengl.cpp.

125  {}

◆ QGLTrapezoid() [2/2]

QGLTrapezoid::QGLTrapezoid ( qreal  top_,
qreal  bottom_,
qreal  topLeftX_,
qreal  topRightX_,
qreal  bottomLeftX_,
qreal  bottomRightX_ 
)
inline

Definition at line 127 of file qpaintengine_opengl.cpp.

128  : top(top_),
129  bottom(bottom_),
130  topLeftX(topLeftX_),
131  topRightX(topRightX_),
132  bottomLeftX(bottomLeftX_),
133  bottomRightX(bottomRightX_)
134  {}

Functions

◆ translated()

const QGLTrapezoid QGLTrapezoid::translated ( const QPointF delta) const

Definition at line 146 of file qpaintengine_opengl.cpp.

147 {
148  QGLTrapezoid trap(*this);
149  trap.top += delta.y();
150  trap.bottom += delta.y();
151  trap.topLeftX += delta.x();
152  trap.topRightX += delta.x();
153  trap.bottomLeftX += delta.x();
154  trap.bottomRightX += delta.x();
155  return trap;
156 }
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287

Properties

◆ bottom

qreal QGLTrapezoid::bottom

◆ bottomLeftX

qreal QGLTrapezoid::bottomLeftX

◆ bottomRightX

qreal QGLTrapezoid::bottomRightX

◆ top

qreal QGLTrapezoid::top

◆ topLeftX

qreal QGLTrapezoid::topLeftX

◆ topRightX

qreal QGLTrapezoid::topRightX

The documentation for this struct was generated from the following file: