Qt logo

qpaintdevicemetrics.h


This is the verbatim text of the qpaintdevicemetrics.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/****************************************************************************
** $Id: qpaintdevicemetrics.h,v 2.4.2.1 1998/08/19 16:02:31 agulbra Exp $
**
** Definition of QPaintDeviceMetrics class
**
** Created : 941109
**
** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
**
** This file is part of Troll Tech's internal development tree for Qt.
**
** This header text will be replaced by an appropriate text by the
** mkdist script which generates external distributions.
**
** If you are using the Qt Professional Edition or the Qt Free Edition,
** please notify Troll Tech at <info@troll.no> if you see this text.
**
** To Troll Tech developers: This header was generated by the script
** fixcopyright-int. It has the same number of text lines as the free
** and professional editions to avoid line number inconsistency.
**
*****************************************************************************/

#ifndef QPAINTDEVICEMETRICS_H
#define QPAINTDEVICEMETRICS_H

#ifndef QT_H
#include "qwindowdefs.h"
#include "qpaintdevice.h"
#include "qpaintdevicedefs.h"
#endif // QT_H


class Q_EXPORT 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 // QPAINTDEVICEMETRICS_H


Copyright © 1998 Troll TechTrademarks
Qt version 1.41