src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h
changeset 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     6 **
       
     7 ** This file is part of the plugins of the Qt Toolkit.
       
     8 **
       
     9 ** $QT_BEGIN_LICENSE:LGPL$
       
    10 ** No Commercial Usage
       
    11 ** This file contains pre-release code and may not be distributed.
       
    12 ** You may use this file in accordance with the terms and conditions
       
    13 ** contained in the Technology Preview License Agreement accompanying
       
    14 ** this package.
       
    15 **
       
    16 ** GNU Lesser General Public License Usage
       
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    18 ** General Public License version 2.1 as published by the Free Software
       
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    20 ** packaging of this file.  Please review the following information to
       
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    23 **
       
    24 ** In addition, as a special exception, Nokia gives you certain additional
       
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    27 **
       
    28 ** If you have questions regarding the use of this file, please contact
       
    29 ** Nokia at qt-info@nokia.com.
       
    30 **
       
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 ** $QT_END_LICENSE$
       
    39 **
       
    40 ****************************************************************************/
       
    41 
       
    42 #ifndef QPAINTENGINE_DIRECTFB_P_H
       
    43 #define QPAINTENGINE_DIRECTFB_P_H
       
    44 
       
    45 #include <QtGui/qpaintengine.h>
       
    46 #include <private/qpaintengine_raster_p.h>
       
    47 
       
    48 #ifndef QT_NO_QWS_DIRECTFB
       
    49 
       
    50 QT_BEGIN_HEADER
       
    51 
       
    52 QT_BEGIN_NAMESPACE
       
    53 
       
    54 QT_MODULE(Gui)
       
    55 
       
    56 class QDirectFBPaintEnginePrivate;
       
    57 
       
    58 class QDirectFBPaintEngine : public QRasterPaintEngine
       
    59 {
       
    60     Q_DECLARE_PRIVATE(QDirectFBPaintEngine)
       
    61 public:
       
    62     QDirectFBPaintEngine(QPaintDevice *device);
       
    63     virtual ~QDirectFBPaintEngine();
       
    64 
       
    65     virtual bool begin(QPaintDevice *device);
       
    66     virtual bool end();
       
    67 
       
    68     virtual void drawRects(const QRect  *rects, int rectCount);
       
    69     virtual void drawRects(const QRectF *rects, int rectCount);
       
    70 
       
    71     virtual void fillRect(const QRectF &r, const QBrush &brush);
       
    72     virtual void fillRect(const QRectF &r, const QColor &color);
       
    73 
       
    74     virtual void drawLines(const QLine *line, int lineCount);
       
    75     virtual void drawLines(const QLineF *line, int lineCount);
       
    76 
       
    77     virtual void drawImage(const QPointF &p, const QImage &img);
       
    78     virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr,
       
    79                            Qt::ImageConversionFlags falgs = Qt::AutoColor);
       
    80 
       
    81     virtual void drawPixmap(const QPointF &p, const QPixmap &pm);
       
    82     virtual void drawPixmap(const QRectF &r, const QPixmap &pixmap, const QRectF &sr);
       
    83     virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pm, const QPointF &sr);
       
    84 
       
    85     virtual void drawBufferSpan(const uint *buffer, int bufsize,
       
    86                                 int x, int y, int length, uint const_alpha);
       
    87 
       
    88     virtual void stroke(const QVectorPath &path, const QPen &pen);
       
    89     virtual void drawPath(const QPainterPath &path);
       
    90     virtual void drawPoints(const QPointF *points, int pointCount);
       
    91     virtual void drawPoints(const QPoint *points, int pointCount);
       
    92     virtual void drawEllipse(const QRectF &rect);
       
    93     virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode);
       
    94     virtual void drawPolygon(const QPoint *points, int pointCount, PolygonDrawMode mode);
       
    95     virtual void drawTextItem(const QPointF &p, const QTextItem &textItem);
       
    96     virtual void fill(const QVectorPath &path, const QBrush &brush);
       
    97     virtual void drawRoundedRect(const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode);
       
    98 
       
    99     virtual void clipEnabledChanged();
       
   100     virtual void penChanged();
       
   101     virtual void opacityChanged();
       
   102     virtual void compositionModeChanged();
       
   103     virtual void renderHintsChanged();
       
   104     virtual void transformChanged();
       
   105 
       
   106     virtual void setState(QPainterState *state);
       
   107 
       
   108     virtual void clip(const QVectorPath &path, Qt::ClipOperation op);
       
   109     virtual void clip(const QRegion &region, Qt::ClipOperation op);
       
   110     virtual void clip(const QRect &rect, Qt::ClipOperation op);
       
   111 
       
   112     static void initImageCache(int size);
       
   113 };
       
   114 
       
   115 QT_END_NAMESPACE
       
   116 
       
   117 QT_END_HEADER
       
   118 
       
   119 #endif // QT_NO_QWS_DIRECTFB
       
   120 
       
   121 #endif // QPAINTENGINE_DIRECTFB_P_H