QSubpath Struct Reference

List of all members.

Detailed Description

Definition at line 75 of file qpaintengine_opengl.cpp.

Public Member Functions

void unite (qreal x, qreal y)
bool intersects (const QSubpath &s) const

Public Attributes

int start
int end
qreal left
qreal right
qreal top
qreal bottom
bool processed
bool added


Member Function Documentation

void QSubpath::unite ( qreal  x,
qreal  y 
) [inline]

Definition at line 83 of file qpaintengine_opengl.cpp.

References bottom, left, right, and top.

Referenced by qt_painterpath_split().

00083                                         {
00084         if (x < left) left = x;
00085         else if (x > right) right = x;
00086         if (y > bottom) bottom = y;
00087         else if (y < top) top = y;
00088     }

bool QSubpath::intersects ( const QSubpath s  )  const [inline]

Definition at line 90 of file qpaintengine_opengl.cpp.

References bottom, left, qMax(), qMin(), right, s, and top.

00091     {
00092         return (qMax(left, s.left) <= qMin(right, s.right) &&
00093                 qMax(top, s.top) <= qMin(bottom, s.bottom));
00094     }

Here is the call graph for this function:


Member Data Documentation

int QSubpath::start

Definition at line 77 of file qpaintengine_opengl.cpp.

int QSubpath::end

Definition at line 77 of file qpaintengine_opengl.cpp.

Referenced by qt_painterpath_split().

qreal QSubpath::left

Definition at line 78 of file qpaintengine_opengl.cpp.

Referenced by intersects(), and unite().

qreal QSubpath::right

Definition at line 78 of file qpaintengine_opengl.cpp.

Referenced by intersects(), and unite().

qreal QSubpath::top

Definition at line 78 of file qpaintengine_opengl.cpp.

Referenced by intersects(), and unite().

qreal QSubpath::bottom

Definition at line 78 of file qpaintengine_opengl.cpp.

Referenced by intersects(), and unite().

bool QSubpath::processed

Definition at line 79 of file qpaintengine_opengl.cpp.

Referenced by qt_painterpath_split().

bool QSubpath::added

Definition at line 80 of file qpaintengine_opengl.cpp.


The documentation for this struct was generated from the following file:
Generated on Thu Mar 15 19:12:13 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1