| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2017 The Qt Company Ltd. |
| 4 | ** Contact: https://www.qt.io/licensing/ |
| 5 | ** |
| 6 | ** This file is part of the examples of the Qt Toolkit. |
| 7 | ** |
| 8 | ** $QT_BEGIN_LICENSE:BSD$ |
| 9 | ** Commercial License Usage |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 11 | ** accordance with the commercial license agreement provided with the |
| 12 | ** Software or, alternatively, in accordance with the terms contained in |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms |
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 15 | ** information use the contact form at https://www.qt.io/contact-us. |
| 16 | ** |
| 17 | ** BSD License Usage |
| 18 | ** Alternatively, you may use this file under the terms of the BSD license |
| 19 | ** as follows: |
| 20 | ** |
| 21 | ** "Redistribution and use in source and binary forms, with or without |
| 22 | ** modification, are permitted provided that the following conditions are |
| 23 | ** met: |
| 24 | ** * Redistributions of source code must retain the above copyright |
| 25 | ** notice, this list of conditions and the following disclaimer. |
| 26 | ** * Redistributions in binary form must reproduce the above copyright |
| 27 | ** notice, this list of conditions and the following disclaimer in |
| 28 | ** the documentation and/or other materials provided with the |
| 29 | ** distribution. |
| 30 | ** * Neither the name of The Qt Company Ltd nor the names of its |
| 31 | ** contributors may be used to endorse or promote products derived |
| 32 | ** from this software without specific prior written permission. |
| 33 | ** |
| 34 | ** |
| 35 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 36 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 37 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 38 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 39 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 40 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 41 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 42 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 43 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 44 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 45 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." |
| 46 | ** |
| 47 | ** $QT_END_LICENSE$ |
| 48 | ** |
| 49 | ****************************************************************************/ |
| 50 | |
| 51 | #ifndef CONTEXT2D_H |
| 52 | #define CONTEXT2D_Hcxx . . $ `examples/script/context2d/context2d.h:52:9`! |
| 53 | |
| 54 | #include "domimage.h"cxx . . $ `<file>/examples/script/context2d/domimage.h`/ |
| 55 | |
| 56 | #include <QPainter> |
| 57 | #include <QPainterPath> |
| 58 | #include <QString> |
| 59 | #include <QStack> |
| 60 | #include <QMetaType> |
| 61 | #include <QTimerEvent> |
| 62 | |
| 63 | // [3] |
| 64 | class CanvasGradientcxx . . $ CanvasGradient# |
| 65 | { |
| 66 | public: |
| 67 | CanvasGradientcxx . . $ CanvasGradient#CanvasGradient(cbd511d3bf8d464c).(const QGradientcxx . . $ QGradient# &v) |
| 68 | : valuecxx . . $ CanvasGradient#value.(v) {} |
| 69 | CanvasGradientcxx . . $ CanvasGradient#CanvasGradient(49f6e7a06ebc5aa8).() {} |
| 70 | |
| 71 | QGradientcxx . . $ QGradient# valuecxx . . $ CanvasGradient#value.; |
| 72 | }; |
| 73 | // [3] |
| 74 | |
| 75 | Q_DECLARE_METATYPEcxx . . $ `<external>/17491093664533580526/qmetatype.h:2056:9`!(CanvasGradient) |
| 76 | Q_DECLARE_METATYPEcxx . . $ QMetaTypeId#Defined.(CanvasGradient*) |
| 77 | |
| 78 | class ImageDatacxx . . $ ImageData# { |
| 79 | }; |
| 80 | |
| 81 | class QContext2DCanvascxx . . $ QContext2DCanvas#; |
| 82 | |
| 83 | //! [0] |
| 84 | class Context2Dcxx . . $ Context2D# : public QObjectcxx . . $ QObject# |
| 85 | { |
| 86 | Q_OBJECTcxx . . $ Context2D#QPrivateSignal# |
| 87 | // compositing |
| 88 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(qreal globalAlpha READ globalAlpha WRITE setGlobalAlpha) |
| 89 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString globalCompositeOperation READ globalCompositeOperation WRITE setGlobalCompositeOperation) |
| 90 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVariant strokeStyle READ strokeStyle WRITE setStrokeStyle) |
| 91 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVariant fillStyle READ fillStyle WRITE setFillStyle) |
| 92 | // line caps/joins |
| 93 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(qreal lineWidth READ lineWidth WRITE setLineWidth) |
| 94 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString lineCap READ lineCap WRITE setLineCap) |
| 95 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString lineJoin READ lineJoin WRITE setLineJoin) |
| 96 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(qreal miterLimit READ miterLimit WRITE setMiterLimit) |
| 97 | // shadows |
| 98 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(qreal shadowOffsetX READ shadowOffsetX WRITE setShadowOffsetX) |
| 99 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(qreal shadowOffsetY READ shadowOffsetY WRITE setShadowOffsetY) |
| 100 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(qreal shadowBlur READ shadowBlur WRITE setShadowBlur) |
| 101 | Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString shadowColor READ shadowColor WRITE setShadowColor) |
| 102 | //! [0] |
| 103 | |
| 104 | public: |
| 105 | Context2Dcxx . . $ Context2D#Context2D(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = 0); |
| 106 | void setSizecxx . . $ Context2D#setSize(3e454b8ccf442868).(int width, int height); |
| 107 | void setSizecxx . . $ Context2D#setSize(1c5f201b4c2f0aba).(const QSizecxx . . $ QSize# &size); |
| 108 | QSizecxx . . $ QSize# sizecxx . . $ Context2D#size(4b3b776e5ee2b367).() const; |
| 109 | |
| 110 | void clearcxx . . $ Context2D#clear(49f6e7a06ebc5aa8).(); |
| 111 | void resetcxx . . $ Context2D#reset(49f6e7a06ebc5aa8).(); |
| 112 | |
| 113 | // compositing |
| 114 | qrealcxx . . $ qreal# globalAlphacxx . . $ Context2D#globalAlpha(21b6c25e127938e2).() const; // (default 1.0) |
| 115 | QStringcxx . . $ QString# globalCompositeOperationcxx . . $ Context2D#globalCompositeOperation(6ef7b6c27b00b43d).() const; // (default over) |
| 116 | QVariantcxx . . $ QVariant# strokeStylecxx . . $ Context2D#strokeStyle(23280f95d1ccaa1f).() const; // (default black) |
| 117 | QVariantcxx . . $ QVariant# fillStylecxx . . $ Context2D#fillStyle(23280f95d1ccaa1f).() const; // (default black) |
| 118 | |
| 119 | void setGlobalAlphacxx . . $ Context2D#setGlobalAlpha(ba8836b59fb42830).(qrealcxx . . $ qreal# alpha); |
| 120 | void setGlobalCompositeOperationcxx . . $ Context2D#setGlobalCompositeOperation(3520e46b33348bf6).(const QStringcxx . . $ QString# &op); |
| 121 | void setStrokeStylecxx . . $ Context2D#setStrokeStyle(244511558b20107a).(const QVariantcxx . . $ QVariant# &style); |
| 122 | void setFillStylecxx . . $ Context2D#setFillStyle(244511558b20107a).(const QVariantcxx . . $ QVariant# &style); |
| 123 | |
| 124 | // line caps/joins |
| 125 | qrealcxx . . $ qreal# lineWidthcxx . . $ Context2D#lineWidth(21b6c25e127938e2).() const; // (default 1) |
| 126 | QStringcxx . . $ QString# lineCapcxx . . $ Context2D#lineCap(6ef7b6c27b00b43d).() const; // "butt", "round", "square" (default "butt") |
| 127 | QStringcxx . . $ QString# lineJoincxx . . $ Context2D#lineJoin(6ef7b6c27b00b43d).() const; // "round", "bevel", "miter" (default "miter") |
| 128 | qrealcxx . . $ qreal# miterLimitcxx . . $ Context2D#miterLimit(21b6c25e127938e2).() const; // (default 10) |
| 129 | |
| 130 | void setLineWidthcxx . . $ Context2D#setLineWidth(ba8836b59fb42830).(qrealcxx . . $ qreal# w); |
| 131 | void setLineCapcxx . . $ Context2D#setLineCap(3520e46b33348bf6).(const QStringcxx . . $ QString# &s); |
| 132 | void setLineJoincxx . . $ Context2D#setLineJoin(3520e46b33348bf6).(const QStringcxx . . $ QString# &s); |
| 133 | void setMiterLimitcxx . . $ Context2D#setMiterLimit(ba8836b59fb42830).(qrealcxx . . $ qreal# m); |
| 134 | |
| 135 | // shadows |
| 136 | qrealcxx . . $ qreal# shadowOffsetXcxx . . $ Context2D#shadowOffsetX(21b6c25e127938e2).() const; // (default 0) |
| 137 | qrealcxx . . $ qreal# shadowOffsetYcxx . . $ Context2D#shadowOffsetY(21b6c25e127938e2).() const; // (default 0) |
| 138 | qrealcxx . . $ qreal# shadowBlurcxx . . $ Context2D#shadowBlur(21b6c25e127938e2).() const; // (default 0) |
| 139 | QStringcxx . . $ QString# shadowColorcxx . . $ Context2D#shadowColor(6ef7b6c27b00b43d).() const; // (default black) |
| 140 | |
| 141 | void setShadowOffsetXcxx . . $ Context2D#setShadowOffsetX(ba8836b59fb42830).(qrealcxx . . $ qreal# x); |
| 142 | void setShadowOffsetYcxx . . $ Context2D#setShadowOffsetY(ba8836b59fb42830).(qrealcxx . . $ qreal# y); |
| 143 | void setShadowBlurcxx . . $ Context2D#setShadowBlur(ba8836b59fb42830).(qrealcxx . . $ qreal# b); |
| 144 | void setShadowColorcxx . . $ Context2D#setShadowColor(3520e46b33348bf6).(const QStringcxx . . $ QString# &str); |
| 145 | |
| 146 | //! [1] |
| 147 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 148 | void savecxx . . $ Context2D#save(49f6e7a06ebc5aa8).(); // push state on state stack |
| 149 | void restorecxx . . $ Context2D#restore(49f6e7a06ebc5aa8).(); // pop state stack and restore state |
| 150 | |
| 151 | void scalecxx . . $ Context2D#scale(bc12c9ec15586e6a).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y); |
| 152 | void rotatecxx . . $ Context2D#rotate(ba8836b59fb42830).(qrealcxx . . $ qreal# angle); |
| 153 | void translatecxx . . $ Context2D#translate(bc12c9ec15586e6a).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y); |
| 154 | void transformcxx . . $ Context2D#transform(56b37c9ef2ead2d3).(qrealcxx . . $ qreal# m11, qrealcxx . . $ qreal# m12, qrealcxx . . $ qreal# m21, qrealcxx . . $ qreal# m22, |
| 155 | qrealcxx . . $ qreal# dx, qrealcxx . . $ qreal# dy); |
| 156 | void setTransformcxx . . $ Context2D#setTransform(56b37c9ef2ead2d3).(qrealcxx . . $ qreal# m11, qrealcxx . . $ qreal# m12, qrealcxx . . $ qreal# m21, qrealcxx . . $ qreal# m22, |
| 157 | qrealcxx . . $ qreal# dx, qrealcxx . . $ qreal# dy); |
| 158 | |
| 159 | CanvasGradientcxx . . $ CanvasGradient# createLinearGradientcxx . . $ Context2D#createLinearGradient(37260dc536929adc).(qrealcxx . . $ qreal# x0, qrealcxx . . $ qreal# y0, |
| 160 | qrealcxx . . $ qreal# x1, qrealcxx . . $ qreal# y1); |
| 161 | CanvasGradientcxx . . $ CanvasGradient# createRadialGradientcxx . . $ Context2D#createRadialGradient(5e5ebc2575be79d7).(qrealcxx . . $ qreal# x0, qrealcxx . . $ qreal# y0, |
| 162 | qrealcxx . . $ qreal# r0, qrealcxx . . $ qreal# x1, |
| 163 | qrealcxx . . $ qreal# y1, qrealcxx . . $ qreal# r1); |
| 164 | |
| 165 | // rects |
| 166 | void clearRectcxx . . $ Context2D#clearRect(52a61fa14d44b641).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y, qrealcxx . . $ qreal# w, qrealcxx . . $ qreal# h); |
| 167 | void fillRectcxx . . $ Context2D#fillRect(52a61fa14d44b641).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y, qrealcxx . . $ qreal# w, qrealcxx . . $ qreal# h); |
| 168 | void strokeRectcxx . . $ Context2D#strokeRect(52a61fa14d44b641).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y, qrealcxx . . $ qreal# w, qrealcxx . . $ qreal# h); |
| 169 | |
| 170 | // path API |
| 171 | void beginPathcxx . . $ Context2D#beginPath(49f6e7a06ebc5aa8).(); |
| 172 | void closePathcxx . . $ Context2D#closePath(49f6e7a06ebc5aa8).(); |
| 173 | void moveTocxx . . $ Context2D#moveTo(bc12c9ec15586e6a).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y); |
| 174 | void lineTocxx . . $ Context2D#lineTo(bc12c9ec15586e6a).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y); |
| 175 | void quadraticCurveTocxx . . $ Context2D#quadraticCurveTo(52a61fa14d44b641).(qrealcxx . . $ qreal# cpx, qrealcxx . . $ qreal# cpy, qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y); |
| 176 | void bezierCurveTocxx . . $ Context2D#bezierCurveTo(56b37c9ef2ead2d3).(qrealcxx . . $ qreal# cp1x, qrealcxx . . $ qreal# cp1y, |
| 177 | qrealcxx . . $ qreal# cp2x, qrealcxx . . $ qreal# cp2y, qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y); |
| 178 | void arcTocxx . . $ Context2D#arcTo(a8d73491ea06a585).(qrealcxx . . $ qreal# x1, qrealcxx . . $ qreal# y1, qrealcxx . . $ qreal# x2, qrealcxx . . $ qreal# y2, qrealcxx . . $ qreal# radius); |
| 179 | void rectcxx . . $ Context2D#rect(52a61fa14d44b641).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y, qrealcxx . . $ qreal# w, qrealcxx . . $ qreal# h); |
| 180 | void arccxx . . $ Context2D#arc(2880d0c1ef0bc44e).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y, qrealcxx . . $ qreal# radius, |
| 181 | qrealcxx . . $ qreal# startAngle, qrealcxx . . $ qreal# endAngle, |
| 182 | bool anticlockwise); |
| 183 | void fillcxx . . $ Context2D#fill(49f6e7a06ebc5aa8).(); |
| 184 | void strokecxx . . $ Context2D#stroke(49f6e7a06ebc5aa8).(); |
| 185 | void clipcxx . . $ Context2D#clip(49f6e7a06ebc5aa8).(); |
| 186 | bool isPointInPathcxx . . $ Context2D#isPointInPath(332053a3ea1ea5b7).(qrealcxx . . $ qreal# x, qrealcxx . . $ qreal# y) const; |
| 187 | //! [1] |
| 188 | |
| 189 | // drawing images |
| 190 | void drawImagecxx . . $ Context2D#drawImage(f4a77c5cb2acef54).(DomImagecxx . . $ DomImage# *image, qrealcxx . . $ qreal# dx, qrealcxx . . $ qreal# dy); |
| 191 | void drawImagecxx . . $ Context2D#drawImage(2e478436e046a0d9).(DomImagecxx . . $ DomImage# *image, qrealcxx . . $ qreal# dx, qrealcxx . . $ qreal# dy, |
| 192 | qrealcxx . . $ qreal# dw, qrealcxx . . $ qreal# dh); |
| 193 | void drawImagecxx . . $ Context2D#drawImage(b7b2c78a8da508d0).(DomImagecxx . . $ DomImage# *image, qrealcxx . . $ qreal# sx, qrealcxx . . $ qreal# sy, |
| 194 | qrealcxx . . $ qreal# sw, qrealcxx . . $ qreal# sh, qrealcxx . . $ qreal# dx, qrealcxx . . $ qreal# dy, |
| 195 | qrealcxx . . $ qreal# dw, qrealcxx . . $ qreal# dh); |
| 196 | |
| 197 | // pixel manipulation |
| 198 | ImageDatacxx . . $ ImageData# getImageDatacxx . . $ Context2D#getImageData(6e5b2e6c8bb8907f).(qrealcxx . . $ qreal# sx, qrealcxx . . $ qreal# sy, qrealcxx . . $ qreal# sw, qrealcxx . . $ qreal# sh); |
| 199 | void putImageDatacxx . . $ Context2D#putImageData(9591d1c072176dcd).(ImageDatacxx . . $ ImageData# image, qrealcxx . . $ qreal# dx, qrealcxx . . $ qreal# dy); |
| 200 | |
| 201 | //! [2] |
| 202 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 203 | void changedcxx . . $ Context2D#changed(9ff1334af0ec69dd).(const QImagecxx . . $ QImage# &image); |
| 204 | //! [2] |
| 205 | |
| 206 | protected: |
| 207 | void timerEventcxx . . $ Context2D#timerEvent(b9e57d1150f23bf5).(QTimerEventcxx . . $ QTimerEvent# *e); |
| 208 | |
| 209 | private: |
| 210 | void beginPaintingcxx . . $ Context2D#beginPainting(49f6e7a06ebc5aa8).(); |
| 211 | const QImagecxx . . $ QImage# &endPaintingcxx . . $ Context2D#endPainting(248369caeb2dfca6).(); |
| 212 | void scheduleChangecxx . . $ Context2D#scheduleChange(49f6e7a06ebc5aa8).(); |
| 213 | |
| 214 | int m_changeTimerIdcxx . . $ Context2D#m_changeTimerId.; |
| 215 | QImagecxx . . $ QImage# m_imagecxx . . $ Context2D#m_image.; |
| 216 | QPaintercxx . . $ QPainter# m_paintercxx . . $ Context2D#m_painter.; |
| 217 | QPainterPathcxx . . $ QPainterPath# m_pathcxx . . $ Context2D#m_path.; |
| 218 | |
| 219 | enum DirtyFlagcxx . . $ Context2D#DirtyFlag# { |
| 220 | DirtyTransformationMatrixcxx . . $ Context2D#DirtyTransformationMatrix. = 0x00001, |
| 221 | DirtyClippingRegioncxx . . $ Context2D#DirtyClippingRegion. = 0x00002, |
| 222 | DirtyStrokeStylecxx . . $ Context2D#DirtyStrokeStyle. = 0x00004, |
| 223 | DirtyFillStylecxx . . $ Context2D#DirtyFillStyle. = 0x00008, |
| 224 | DirtyGlobalAlphacxx . . $ Context2D#DirtyGlobalAlpha. = 0x00010, |
| 225 | DirtyLineWidthcxx . . $ Context2D#DirtyLineWidth. = 0x00020, |
| 226 | DirtyLineCapcxx . . $ Context2D#DirtyLineCap. = 0x00040, |
| 227 | DirtyLineJoincxx . . $ Context2D#DirtyLineJoin. = 0x00080, |
| 228 | DirtyMiterLimitcxx . . $ Context2D#DirtyMiterLimit. = 0x00100, |
| 229 | MDirtyPencxx . . $ Context2D#MDirtyPen. = DirtyStrokeStylecxx . . $ Context2D#DirtyStrokeStyle. |
| 230 | | DirtyLineWidthcxx . . $ Context2D#DirtyLineWidth. |
| 231 | | DirtyLineCapcxx . . $ Context2D#DirtyLineCap. |
| 232 | | DirtyLineJoincxx . . $ Context2D#DirtyLineJoin. |
| 233 | | DirtyMiterLimitcxx . . $ Context2D#DirtyMiterLimit., |
| 234 | DirtyShadowOffsetXcxx . . $ Context2D#DirtyShadowOffsetX. = 0x00200, |
| 235 | DirtyShadowOffsetYcxx . . $ Context2D#DirtyShadowOffsetY. = 0x00400, |
| 236 | DirtyShadowBlurcxx . . $ Context2D#DirtyShadowBlur. = 0x00800, |
| 237 | DirtyShadowColorcxx . . $ Context2D#DirtyShadowColor. = 0x01000, |
| 238 | DirtyGlobalCompositeOperationcxx . . $ Context2D#DirtyGlobalCompositeOperation. = 0x2000, |
| 239 | DirtyFontcxx . . $ Context2D#DirtyFont. = 0x04000, |
| 240 | DirtyTextAligncxx . . $ Context2D#DirtyTextAlign. = 0x08000, |
| 241 | DirtyTextBaselinecxx . . $ Context2D#DirtyTextBaseline. = 0x10000, |
| 242 | AllIsFullOfDirtcxx . . $ Context2D#AllIsFullOfDirt. = 0xfffff |
| 243 | }; |
| 244 | |
| 245 | struct Statecxx . . $ Context2D#State# { |
| 246 | Statecxx . . $ Context2D#State#State(49f6e7a06ebc5aa8).() : flagscxx . . $ Context2D#State#flags.(0) {} |
| 247 | QTransformcxx . . $ QTransform# matrixcxx . . $ Context2D#State#matrix.; |
| 248 | QPainterPathcxx . . $ QPainterPath# clipPathcxx . . $ Context2D#State#clipPath.; |
| 249 | QBrushcxx . . $ QBrush# strokeStylecxx . . $ Context2D#State#strokeStyle.; |
| 250 | QBrushcxx . . $ QBrush# fillStylecxx . . $ Context2D#State#fillStyle.; |
| 251 | qrealcxx . . $ qreal# globalAlphacxx . . $ Context2D#State#globalAlpha.; |
| 252 | qrealcxx . . $ qreal# lineWidthcxx . . $ Context2D#State#lineWidth.; |
| 253 | Qtcxx . . $ Qt/::PenCapStylecxx . . $ Qt/PenCapStyle# lineCapcxx . . $ Context2D#State#lineCap.; |
| 254 | Qtcxx . . $ Qt/::PenJoinStylecxx . . $ Qt/PenJoinStyle# lineJoincxx . . $ Context2D#State#lineJoin.; |
| 255 | qrealcxx . . $ qreal# miterLimitcxx . . $ Context2D#State#miterLimit.; |
| 256 | qrealcxx . . $ qreal# shadowOffsetXcxx . . $ Context2D#State#shadowOffsetX.; |
| 257 | qrealcxx . . $ qreal# shadowOffsetYcxx . . $ Context2D#State#shadowOffsetY.; |
| 258 | qrealcxx . . $ qreal# shadowBlurcxx . . $ Context2D#State#shadowBlur.; |
| 259 | QColorcxx . . $ QColor# shadowColorcxx . . $ Context2D#State#shadowColor.; |
| 260 | QPaintercxx . . $ QPainter#::CompositionModecxx . . $ QPainter#CompositionMode# globalCompositeOperationcxx . . $ Context2D#State#globalCompositeOperation.; |
| 261 | QFontcxx . . $ QFont# fontcxx . . $ Context2D#State#font.; |
| 262 | int textAligncxx . . $ Context2D#State#textAlign.; |
| 263 | int textBaselinecxx . . $ Context2D#State#textBaseline.; |
| 264 | int flagscxx . . $ Context2D#State#flags.; |
| 265 | }; |
| 266 | Statecxx . . $ Context2D#State# m_statecxx . . $ Context2D#m_state.; |
| 267 | QStackcxx . . $ QStack#<Statecxx . . $ Context2D#State#> m_stateStackcxx . . $ Context2D#m_stateStack.; |
| 268 | }; |
| 269 | |
| 270 | #endif |