This is the verbatim text of the qpicture.h include file. It is is provided only for illustration; the copyright remains with Troll Tech


/****************************************************************************
** $Id: qpicture.h,v 2.2 1997/08/06 15:05:41 hanord Exp $
**
** Definition of QPicture class
**
** Created : 940729
**
** Copyright (C) 1994-1997 by Troll Tech AS.  All rights reserved.
**
*****************************************************************************/

#ifndef QPICTURE_H
#define QPICTURE_H

#include "qpaintd.h"
#include "qbuffer.h"


class QPicture : public QPaintDevice            // picture class
{
public:
    QPicture();
   ~QPicture();

    bool        isNull() const;

    uint        size() const;
    const char *data() const;
    void        setData( const char *data, uint size );

    bool        play( QPainter * );

    bool        load( const char *fileName );
    bool        save( const char *fileName );

protected:
    bool        cmd( int, QPainter *, QPDevCmdParam * );
    int         metric( int ) const;

private:
    bool        exec( QPainter *, QDataStream &, int );
    QBuffer     pictb;
    int         trecs;
    bool        formatOk;

private:        // Disabled copy constructor and operator=
    QPicture( const QPicture & ) :QPaintDevice(0) {}
    QPicture &operator=( const QPicture & ) { return *this; }
};


inline bool QPicture::isNull() const
{
    return pictb.buffer().isNull();
}

inline uint QPicture::size() const
{
    return pictb.buffer().size();
}

inline const char *QPicture::data() const
{
    return pictb.buffer().data();
}


#endif // QPICTURE_H


Generated at 13:30, 1998/01/15 for Qt version 1.32 by the webmaster at Troll Tech