Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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>
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 } |
#define PM_DISPLAY |
Definition at line 32 of file qpainterpath.cpp.
#define PM_INIT |
Definition at line 30 of file qpainterpath.cpp.
#define PM_MEASURE | ( | x | ) |
Definition at line 31 of file qpainterpath.cpp.
#define QT_BEZIER_A | ( | bezier, | |
coord ) |
Definition at line 1339 of file qpainterpath.cpp.
Referenced by qt_painterpath_bezier_extrema().
#define QT_BEZIER_B | ( | bezier, | |
coord ) |
Definition at line 1344 of file qpainterpath.cpp.
Referenced by qt_painterpath_bezier_extrema().
#define QT_BEZIER_C | ( | bezier, | |
coord ) |
Definition at line 1348 of file qpainterpath.cpp.
Referenced by qt_painterpath_bezier_extrema().
#define QT_BEZIER_CHECK_T | ( | bezier, | |
t ) |
Definition at line 1351 of file qpainterpath.cpp.
Referenced by qt_painterpath_bezier_extrema().
enum PainterDirections |
Enumerator | |
---|---|
Left | |
Right | |
Top | |
Bottom |
Definition at line 1847 of file qpainterpath.cpp.
|
inlinestatic |
Definition at line 2933 of file qpainterpath.cpp.
References QPainterPath::CurveToElement, QBezier::fromPoints(), i, QString::length(), line, QPainterPath::LineToElement, QPainterPath::MoveToElement, and QPainterPath::Element::type.
Referenced by QPainterPath::angleAtPercent(), QPainterPath::pointAtPercent(), and QPainterPath::slopeAtPercent().
|
inlinestatic |
Definition at line 2242 of file qpainterpath.cpp.
References epsilon, and qAbs().
Referenced by QPainterPath::operator==().
|
static |
Definition at line 45 of file qpainterpath.cpp.
References isValidCoord().
Referenced by QPainterPath::addEllipse(), QPainterPath::addRect(), QPainterPath::arcTo(), QPainterPath::cubicTo(), QPainterPath::lineTo(), QPainterPath::moveTo(), and QPainterPath::quadTo().
|
static |
Definition at line 50 of file qpainterpath.cpp.
References isValidCoord().
|
inlinestatic |
Definition at line 37 of file qpainterpath.cpp.
References qIsFinite().
Referenced by QPainterPath::arcTo(), hasValidCoords(), and hasValidCoords().
|
related |
Definition at line 2412 of file qpainterpath.cpp.
QDebug operator<< | ( | QDebug | s, |
const QPainterPath & | p ) |
Definition at line 3365 of file qpainterpath.cpp.
References Qt::endl(), and i.
|
related |
Definition at line 2439 of file qpainterpath.cpp.
Definition at line 1964 of file qpainterpath.cpp.
References rect, QPointF::x(), and QPointF::y().
Referenced by qt_painterpath_check_crossing().
void qt_find_ellipse_coords | ( | const QRectF & | r, |
qreal | angle, | ||
qreal | length, | ||
QPointF * | startPoint, | ||
QPointF * | endPoint ) |
Definition at line 65 of file qpainterpath.cpp.
References QBezier::coefficients(), d, i, qFloor(), QT_PATH_KAPPA, and qt_t_for_arc_angle().
Referenced by QPainterPath::arcMoveTo(), and qt_curves_for_arc().
|
static |
Definition at line 1928 of file qpainterpath.cpp.
References QRectF::bottom(), QBezier::bounds(), QRectF::height(), QRectF::left(), qt_isect_curve_horizontal(), QRectF::right(), QBezier::split(), QRectF::top(), and QRectF::width().
Referenced by qt_isect_curve_horizontal(), and qt_painterpath_check_crossing().
|
static |
Definition at line 1946 of file qpainterpath.cpp.
References QRectF::bottom(), QBezier::bounds(), QRectF::height(), QRectF::left(), qt_isect_curve_vertical(), QRectF::right(), QBezier::split(), QRectF::top(), and QRectF::width().
Referenced by qt_isect_curve_vertical(), and qt_painterpath_check_crossing().
Definition at line 1361 of file qpainterpath.cpp.
References qFuzzyIsNull(), qSqrt(), QT_BEZIER_A, QT_BEZIER_B, QT_BEZIER_C, QT_BEZIER_CHECK_T, and t2.
|
static |
Definition at line 1978 of file qpainterpath.cpp.
References QPainterPath::CurveToElement, QBezier::fromPoints(), i, QPainterPath::LineToElement, QPainterPath::MoveToElement, pointOnEdge(), qFuzzyCompare(), qt_isect_curve_horizontal(), qt_isect_curve_vertical(), qt_painterpath_isect_line_rect(), rect, QPainterPath::Element::type, QPainterPath::Element::x, and QPainterPath::Element::y.
Referenced by QPainterPath::contains(), and QPainterPath::intersects().
|
static |
Definition at line 1754 of file qpainterpath.cpp.
References QBezier::bounds(), QRectF::height(), QBezier::pt1(), QBezier::pt4(), qt_painterpath_isect_curve(), QBezier::split(), QRectF::width(), QPointF::x(), QPointF::y(), and QRectF::y().
Referenced by QPainterPath::contains(), and qt_painterpath_isect_curve().
|
static |
Definition at line 1722 of file qpainterpath.cpp.
References dir, p1, p2, pos, and qFuzzyCompare().
Referenced by QPainterPath::contains().
|
static |
Definition at line 1849 of file qpainterpath.cpp.
References Bottom, Left, p1, p2, rect, Right, and Top.
Referenced by qt_painterpath_check_crossing().
void qt_path_stroke_cubic_to | ( | qfixed | c1x, |
qfixed | c1y, | ||
qfixed | c2x, | ||
qfixed | c2y, | ||
qfixed | ex, | ||
qfixed | ey, | ||
void * | data ) |
Definition at line 2496 of file qpainterpath.cpp.
References qt_fixed_to_real.
Referenced by QPainterPathStrokerPrivate::QPainterPathStrokerPrivate().
Definition at line 2491 of file qpainterpath.cpp.
References qt_fixed_to_real.
Referenced by QPainterPathStrokerPrivate::QPainterPathStrokerPrivate().
Definition at line 2486 of file qpainterpath.cpp.
References qt_fixed_to_real.
Referenced by QPainterPathStrokerPrivate::QPainterPathStrokerPrivate().
QPainterPath qt_stroke_dash | ( | const QPainterPath & | path, |
qreal * | dashes, | ||
int | dashCount ) |
Definition at line 2828 of file qpainterpath.cpp.
References d.
Referenced by QPainterPath::angleAtPercent(), and QPainterPath::slopeAtPercent().