src/gui/painting/qpainter_p.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   226     void updateState(QPainterState *state);
   226     void updateState(QPainterState *state);
   227 
   227 
   228     void draw_helper(const QPainterPath &path, DrawOperation operation = StrokeAndFillDraw);
   228     void draw_helper(const QPainterPath &path, DrawOperation operation = StrokeAndFillDraw);
   229     void drawStretchedGradient(const QPainterPath &path, DrawOperation operation);
   229     void drawStretchedGradient(const QPainterPath &path, DrawOperation operation);
   230     void drawOpaqueBackground(const QPainterPath &path, DrawOperation operation);
   230     void drawOpaqueBackground(const QPainterPath &path, DrawOperation operation);
       
   231     void drawGlyphs(const quint32 *glyphArray, const QPointF *positionArray, int glyphCount);
   231 
   232 
   232     void updateMatrix();
   233     void updateMatrix();
   233     void updateInvMatrix();
   234     void updateInvMatrix();
   234 
   235 
   235     int rectSubtraction() const {
   236     int rectSubtraction() const {
   236         return state->pen.style() != Qt::NoPen && state->pen.width() == 0 ? 1 : 0;
   237         return state->pen.style() != Qt::NoPen && state->pen.width() == 0 ? 1 : 0;
   237     }
   238     }
   238 
   239 
   239     void checkEmulation();
   240     void checkEmulation();
       
   241 
       
   242     static QPainterPrivate *get(QPainter *painter)
       
   243     {
       
   244         return painter->d_ptr.data();
       
   245     }
   240 
   246 
   241     QTransform viewTransform() const;
   247     QTransform viewTransform() const;
   242     static bool attachPainterPrivate(QPainter *q, QPaintDevice *pdev);
   248     static bool attachPainterPrivate(QPainter *q, QPaintDevice *pdev);
   243     void detachPainterPrivate(QPainter *q);
   249     void detachPainterPrivate(QPainter *q);
   244 
   250 
   250     QPaintEngineEx *extended;
   256     QPaintEngineEx *extended;
   251     QBrush colorBrush;          // for fill with solid color
   257     QBrush colorBrush;          // for fill with solid color
   252 };
   258 };
   253 
   259 
   254 Q_GUI_EXPORT void qt_draw_helper(QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation);
   260 Q_GUI_EXPORT void qt_draw_helper(QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation);
       
   261 Q_GUI_EXPORT void qt_draw_glyphs(QPainter *painter, const quint32 *glyphArray,
       
   262                                  const QPointF *positionArray, int glyphCount);
   255 
   263 
   256 QString qt_generate_brush_key(const QBrush &brush);
   264 QString qt_generate_brush_key(const QBrush &brush);
   257 
   265 
   258 QT_END_NAMESPACE
   266 QT_END_NAMESPACE
   259 
   267