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

#include <qpaintengineex_p.h>

Public Functions

void set (const QRect &r)
 

Public Variables

int x1
 
int x2
 
int y1
 
int y2
 

Detailed Description

Definition at line 76 of file qpaintengineex_p.h.

Functions

◆ set()

void QIntRect::set ( const QRect r)
inline

Definition at line 78 of file qpaintengineex_p.h.

78  {
79  x1 = r.x();
80  y1 = r.y();
81  x2 = r.right() + 1;
82  y2 = r.bottom() + 1;
83  // We will assume normalized for later...
84  Q_ASSERT(x2 >= x1);
85  Q_ASSERT(y2 >= y1);
86  }
int bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:249
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
int right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:246
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252

Properties

◆ x1

int QIntRect::x1

Definition at line 77 of file qpaintengineex_p.h.

◆ x2

int QIntRect::x2

Definition at line 77 of file qpaintengineex_p.h.

◆ y1

int QIntRect::y1

Definition at line 77 of file qpaintengineex_p.h.

◆ y2

int QIntRect::y2

Definition at line 77 of file qpaintengineex_p.h.


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