ganeswidgets/inc/hgvgimage.h
changeset 1 e48454f237ca
parent 0 89c329efa980
child 2 49c70dcc3f17
equal deleted inserted replaced
0:89c329efa980 1:e48454f237ca
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:    
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #ifndef HGVGIMAGE_H
    18 #ifndef HGVGIMAGE_H
    19 #define HGVGIMAGE_H
    19 #define HGVGIMAGE_H
    35     HgVgImage(HgVgQuadRenderer* renderer);
    35     HgVgImage(HgVgQuadRenderer* renderer);
    36     virtual ~HgVgImage();
    36     virtual ~HgVgImage();
    37 
    37 
    38     int width() const;
    38     int width() const;
    39     int height() const;
    39     int height() const;
    40     
    40 
    41     VGImage image() const;
    41     VGImage image() const;
    42     
    42 
    43     int mirrorImageWidth() const;
    43     int mirrorImageWidth() const;
    44     int mirrorImageHeight() const;
    44     int mirrorImageHeight() const;
    45     
    45 
    46     VGImage mirrorImage() const;
    46     VGImage mirrorImage() const;
    47     
    47 
    48     void setImage(QImage& image);
    48     void setImage(const QImage& image);
    49     void releaseImage();
    49     void releaseImage();
    50     
    50     
       
    51     QImage getQImage() const;
       
    52 
    51     void upload(bool mirror=false);
    53     void upload(bool mirror=false);
    52   
    54 
    53 private:    
    55 private:
    54     VGImage mVgImage;
    56     VGImage mVgImage;
    55     VGImage mMirrorImage;
    57     VGImage mMirrorImage;
    56     QSize mMirrorSize;
    58     QSize mMirrorSize;
    57     QImage mQImage;
    59     QImage mQImage;
    58     HgVgQuadRenderer* mRenderer;
    60     HgVgQuadRenderer* mRenderer;