QtBase  v6.3.1
Macros | Enumerations | Functions
qpainterpath.cpp File Reference
#include "qpainterpath.h"
#include "qpainterpath_p.h"
#include <qbitmap.h>
#include <qdebug.h>
#include <qiodevice.h>
#include <qlist.h>
#include <qpen.h>
#include <qpolygon.h>
#include <qtextlayout.h>
#include <qvarlengtharray.h>
#include <qmath.h>
#include <private/qbezier_p.h>
#include <private/qfontengine_p.h>
#include <private/qnumeric_p.h>
#include <private/qobject_p.h>
#include <private/qpathclipper_p.h>
#include <private/qstroker_p.h>
#include <private/qtextengine_p.h>
#include <limits.h>
Include dependency graph for qpainterpath.cpp:

Go to the source code of this file.

Macros

#define PM_INIT
 
#define PM_MEASURE(x)
 
#define PM_DISPLAY
 
#define QT_BEZIER_A(bezier, coord)
 
#define QT_BEZIER_B(bezier, coord)
 
#define QT_BEZIER_C(bezier, coord)
 
#define QT_BEZIER_CHECK_T(bezier, t)
 

Enumerations

enum  PainterDirections { Left , Right , Top , Bottom }
 

Functions

QPainterPath qt_stroke_dash (const QPainterPath &path, qreal *dashes, int dashCount)
 
void qt_find_ellipse_coords (const QRectF &r, qreal angle, qreal length, QPointF *startPoint, QPointF *endPoint)
 
QDataStreamoperator<< (QDataStream &s, const QPainterPath &p)
 
QDataStreamoperator>> (QDataStream &s, QPainterPath &p)
 
void qt_path_stroke_move_to (qfixed x, qfixed y, void *data)
 
void qt_path_stroke_line_to (qfixed x, qfixed y, void *data)
 
void qt_path_stroke_cubic_to (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey, void *data)
 
QDebug operator<< (QDebug s, const QPainterPath &p)
 

Macro Definition Documentation

◆ PM_DISPLAY

#define PM_DISPLAY

Definition at line 68 of file qpainterpath.cpp.

◆ PM_INIT

#define PM_INIT

Definition at line 66 of file qpainterpath.cpp.

◆ PM_MEASURE

#define PM_MEASURE (   x)

Definition at line 67 of file qpainterpath.cpp.

◆ QT_BEZIER_A

#define QT_BEZIER_A (   bezier,
  coord 
)
Value:
3 * (-bezier.coord##1 \
+ 3*bezier.coord##2 \
- 3*bezier.coord##3 \
+bezier.coord##4)

Definition at line 1374 of file qpainterpath.cpp.

◆ QT_BEZIER_B

#define QT_BEZIER_B (   bezier,
  coord 
)
Value:
6 * (bezier.coord##1 \
- 2*bezier.coord##2 \
+ bezier.coord##3)

Definition at line 1379 of file qpainterpath.cpp.

◆ QT_BEZIER_C

#define QT_BEZIER_C (   bezier,
  coord 
)
Value:
3 * (- bezier.coord##1 \
+ bezier.coord##2)

Definition at line 1383 of file qpainterpath.cpp.

◆ QT_BEZIER_CHECK_T

#define QT_BEZIER_CHECK_T (   bezier,
  t 
)
Value:
if (t >= 0 && t <= 1) { \
QPointF p(b.pointAt(t)); \
if (p.x() < minx) minx = p.x(); \
else if (p.x() > maxx) maxx = p.x(); \
if (p.y() < miny) miny = p.y(); \
else if (p.y() > maxy) maxy = p.y(); \
}
GLboolean GLboolean GLboolean b
GLdouble GLdouble t
[9]
Definition: qopenglext.h:243
GLfloat GLfloat p
[1]
Definition: qopenglext.h:12698

Definition at line 1386 of file qpainterpath.cpp.

Enumeration Type Documentation

◆ PainterDirections

Enumerator
Left 
Right 
Top 
Bottom 

Definition at line 1882 of file qpainterpath.cpp.

Function Documentation

◆ operator<<() [1/2]

QDataStream& operator<< ( QDataStream s,
const QPainterPath p 
)
related

Definition at line 2447 of file qpainterpath.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug  s,
const QPainterPath p 
)

Definition at line 3402 of file qpainterpath.cpp.

Here is the call graph for this function:

◆ operator>>()

QDataStream& operator>> ( QDataStream s,
QPainterPath p 
)
related

Definition at line 2474 of file qpainterpath.cpp.

◆ qt_find_ellipse_coords()

void qt_find_ellipse_coords ( const QRectF r,
qreal  angle,
qreal  length,
QPointF startPoint,
QPointF endPoint 
)

Definition at line 101 of file qpainterpath.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qt_path_stroke_cubic_to()

void qt_path_stroke_cubic_to ( qfixed  c1x,
qfixed  c1y,
qfixed  c2x,
qfixed  c2y,
qfixed  ex,
qfixed  ey,
void data 
)

Definition at line 2533 of file qpainterpath.cpp.

Here is the caller graph for this function:

◆ qt_path_stroke_line_to()

void qt_path_stroke_line_to ( qfixed  x,
qfixed  y,
void data 
)

Definition at line 2528 of file qpainterpath.cpp.

Here is the caller graph for this function:

◆ qt_path_stroke_move_to()

void qt_path_stroke_move_to ( qfixed  x,
qfixed  y,
void data 
)

Definition at line 2523 of file qpainterpath.cpp.

Here is the caller graph for this function:

◆ qt_stroke_dash()

QPainterPath qt_stroke_dash ( const QPainterPath path,
qreal dashes,
int  dashCount 
)