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

#include <qgl2pexvertexarray_p.h>

Public Functions

 operator QRectF () const
 
 QGLRect (const QRectF &r)
 
 QGLRect (GLfloat l, GLfloat t, GLfloat r, GLfloat b)
 

Public Variables

GLfloat bottom
 
GLfloat left
 
GLfloat right
 
GLfloat top
 

Detailed Description

Definition at line 83 of file qgl2pexvertexarray_p.h.

Constructors and Destructors

◆ QGLRect() [1/2]

QGLRect::QGLRect ( const QRectF r)
inline

Definition at line 85 of file qgl2pexvertexarray_p.h.

86  : left(r.left()), top(r.top()), right(r.right()), bottom(r.bottom()) {}
qreal right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:527
qreal left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:525
qreal top() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:526
qreal bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:528

◆ QGLRect() [2/2]

QGLRect::QGLRect ( GLfloat  l,
GLfloat  t,
GLfloat  r,
GLfloat  b 
)
inline

Definition at line 88 of file qgl2pexvertexarray_p.h.

89  : left(l), top(t), right(r), bottom(b) {}
QFactoryLoader * l

Functions

◆ operator QRectF()

QGLRect::operator QRectF ( ) const
inline

Definition at line 96 of file qgl2pexvertexarray_p.h.

96 {return QRectF(left, top, right-left, bottom-top);}
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511

Properties

◆ bottom

GLfloat QGLRect::bottom

◆ left

GLfloat QGLRect::left

◆ right

GLfloat QGLRect::right

◆ top

GLfloat QGLRect::top

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