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.0 1996/09/24 10:15:56 agulbra Exp $
**
** Definition of QPaintDeviceMetrics class
**
** Created : 941109
**
** Copyright (C) 1994-1996 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 17:29, 1997/04/07 for Qt version 1.2 by the webmaster at Troll Tech