![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qquickcontext2d_p.h"
#include "qquickcontext2dcommandbuffer_p.h"
#include "qquickcanvasitem_p.h"
#include <private/qtquickglobal_p.h>
#include <private/qquickcontext2dtexture_p.h>
#include <private/qquickitem_p.h>
#include <qsgrendererinterface.h>
#include <QtQuick/private/qsgcontext_p.h>
#include <private/qquicksvgparser_p.h>
#include <private/qquickimage_p_p.h>
#include <qqmlinfo.h>
#include <qqmlengine.h>
#include <private/qv4domerrors_p.h>
#include <private/qv4engine_p.h>
#include <private/qv4object_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <private/qquickwindow_p.h>
#include <private/qv4value_p.h>
#include <private/qv4functionobject_p.h>
#include <private/qv4objectproto_p.h>
#include <private/qv4scopedvalue_p.h>
#include <private/qlocale_tools_p.h>
#include <QtCore/qmath.h>
#include <QtCore/qvector.h>
#include <QtCore/private/qnumeric_p.h>
#include <QtCore/QRunnable>
#include <QtGui/qguiapplication.h>
#include <private/qguiapplication_p.h>
#include <qpa/qplatformintegration.h>
#include <private/qsgdefaultrendercontext_p.h>
#include <QtCore/qpointer.h>
#include <cmath>
#include "moc_qquickcontext2d_p.cpp"
Go to the source code of this file.
Classes | |
class | QQuickContext2DEngineData |
struct | QV4::Heap::QQuickJSContext2D |
struct | QV4::Heap::QQuickJSContext2DPrototype |
struct | QV4::Heap::QQuickContext2DStyle |
struct | QV4::Heap::QQuickJSContext2DPixelData |
struct | QV4::Heap::QQuickJSContext2DImageData |
struct | QQuickJSContext2D |
struct | QQuickJSContext2DPrototype |
struct | QQuickContext2DStyle |
struct | QQuickJSContext2DPixelData |
struct | QQuickJSContext2DImageData |
Namespaces | |
namespace | QV4 |
namespace | QV4::Heap |
Macros | |
#define | CHECK_CONTEXT(r) |
\qmltype Context2D \nativetype QQuickContext2D \inqmlmodule QtQuick | |
#define | CHECK_CONTEXT_SETTER(r) |
#define | qClamp(val, min, max) |
#define | CHECK_RGBA(c) |
#define | Q_TRY_SET_TOKEN(token, value, setStatement) |
Enumerations | |
enum | FontToken { NoTokens = 0x00 , FontStyle = 0x01 , FontVariant = 0x02 , FontWeight = 0x04 , NoTokens = 0x00 , FontStyle = 0x01 , FontVariant = 0x02 , FontWeight = 0x04 } |
enum | FontToken { NoTokens = 0x00 , FontStyle = 0x01 , FontVariant = 0x02 , FontWeight = 0x04 , NoTokens = 0x00 , FontStyle = 0x01 , FontVariant = 0x02 , FontWeight = 0x04 } |
#define CHECK_CONTEXT | ( | r | ) |
\qmltype Context2D \nativetype QQuickContext2D \inqmlmodule QtQuick
Provides 2D context for shapes on a Canvas item.
The Context2D object can be created by Canvas
item's getContext()
method:
The Context2D API implements the same \l {http://www.w3.org/TR/2dcontext}{W3C Canvas 2D Context API standard} with some enhanced features.
The Context2D API provides the rendering {context} which defines the methods and attributes needed to draw on the Canvas
item. The following assigns the canvas rendering context to a {context} variable:
The Context2D API renders the canvas as a coordinate system whose origin (0,0) is at the top left corner, as shown in the figure below. Coordinates increase along the {x} axis from left to right and along the
{y} axis from top to bottom of the canvas.
Definition at line 95 of file qquickcontext2d.cpp.
#define CHECK_CONTEXT_SETTER | ( | r | ) |
Definition at line 98 of file qquickcontext2d.cpp.
#define CHECK_RGBA | ( | c | ) |
Definition at line 101 of file qquickcontext2d.cpp.
Definition at line 319 of file qquickcontext2d.cpp.
#define qClamp | ( | val, | |
min, | |||
max ) |
Definition at line 100 of file qquickcontext2d.cpp.
enum FontToken |
Enumerator | |
---|---|
NoTokens | |
FontStyle | |
FontVariant | |
FontWeight | |
NoTokens | |
FontStyle | |
FontVariant | |
FontWeight |
Definition at line 311 of file qquickcontext2d.cpp.
enum FontToken |
Enumerator | |
---|---|
NoTokens | |
FontStyle | |
FontVariant | |
FontWeight | |
NoTokens | |
FontStyle | |
FontVariant | |
FontWeight |
Definition at line 311 of file qquickcontext2d.cpp.
Definition at line 4182 of file qquickcontext2d.cpp.
int baseLineOffset | ( | QQuickContext2D::TextBaseLineType | value, |
const QFontMetrics & | metrics ) |
Definition at line 4117 of file qquickcontext2d.cpp.
DEFINE_OBJECT_VTABLE | ( | QQuickContext2DStyle | ) |
DEFINE_OBJECT_VTABLE | ( | QQuickJSContext2D | ) |
DEFINE_OBJECT_VTABLE | ( | QQuickJSContext2DImageData | ) |
DEFINE_OBJECT_VTABLE | ( | QQuickJSContext2DPixelData | ) |
DEFINE_OBJECT_VTABLE | ( | QQuickJSContext2DPrototype | ) |
|
static |
Definition at line 220 of file qquickcontext2d.cpp.
|
static |
Definition at line 174 of file qquickcontext2d.cpp.
|
static |
Definition at line 278 of file qquickcontext2d.cpp.
|
static |
Definition at line 190 of file qquickcontext2d.cpp.
Q_QUICK_EXPORT QColor qt_color_from_string | ( | const QV4::Value & | name | ) |
Definition at line 102 of file qquickcontext2d.cpp.
|
static |
Definition at line 784 of file qquickcontext2d.cpp.
|
static |
Definition at line 838 of file qquickcontext2d.cpp.
|
static |
Definition at line 942 of file qquickcontext2d.cpp.
Definition at line 333 of file qquickcontext2d.cpp.
References NoTokens.
QT_BEGIN_NAMESPACE void qt_image_boxblur | ( | QImage & | image, |
int | radius, | ||
bool | quality ) |
Definition at line 776 of file qquickcontext2d.cpp.
QImage qt_image_convolute_filter | ( | const QImage & | src, |
const QVector< qreal > & | weights, | ||
int | radius = 0 ) |
Definition at line 700 of file qquickcontext2d.cpp.
|
static |
Definition at line 4137 of file qquickcontext2d.cpp.
References QQuickContext2D::Center, QQuickContext2D::Left, and QQuickContext2D::Right.
Definition at line 4188 of file qquickcontext2d.cpp.