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


/****************************************************************************
** $Id: qpdevmet.h,v 2.1 1997/08/06 15:05:40 hanord Exp $
**
** Definition of QPaintDeviceMetrics class
**
** Created : 941109
**
** Copyright (C) 1994-1997 by Troll Tech AS.  All rights reserved.
**
*****************************************************************************/

#ifndef QPDEVMET_H
#define QPDEVMET_H

#include "qwindefs.h"
#include "qpaintd.h"
#include "qpaintdc.h"


class QPaintDeviceMetrics                       // paint device metrics
{
public:
    QPaintDeviceMetrics( const QPaintDevice * );

    int   width()       const   { return (int)pdev->metric(PDM_WIDTH); }
    int   height()      const   { return (int)pdev->metric(PDM_HEIGHT); }
    int   widthMM()     const   { return (int)pdev->metric(PDM_WIDTHMM); }
    int   heightMM()    const   { return (int)pdev->metric(PDM_HEIGHTMM); }
    int   numColors()   const   { return (int)pdev->metric(PDM_NUMCOLORS); }
    int   depth()       const   { return (int)pdev->metric(PDM_DEPTH); }

private:
    QPaintDevice *pdev;
};


#endif // QPDEVMET_H


Generated at 19:08, 1997/10/09 for Qt version 1.31 by the webmaster at Troll Tech