Source Code (Use browser search to find items of interest.)
Class Index
qt'QPaintDeviceMetrics (./qt-2.1.0/src/kernel/qpaintdevicemetrics.h:35)
class Q_EXPORT QPaintDeviceMetrics // paint device metrics
{
public:
QPaintDeviceMetrics( const QPaintDevice * );
enum {
PdmWidth = 1,
PdmHeight,
PdmWidthMM,
PdmHeightMM,
PdmNumColors,
PdmDepth,
PdmDpiX,
PdmDpiY
};
int width() const { return (int)pdev->metric(PdmWidth); }
int height() const { return (int)pdev->metric(PdmHeight); }
int widthMM() const { return (int)pdev->metric(PdmWidthMM); }
int heightMM() const { return (int)pdev->metric(PdmHeightMM); }
int logicalDpiX() const { return (int)pdev->metric(PdmDpiX); }
int logicalDpiY() const { return (int)pdev->metric(PdmDpiY); }
int numColors() const { return (int)pdev->metric(PdmNumColors); }
int depth() const { return (int)pdev->metric(PdmDepth); }
private:
QPaintDevice *pdev;
};
qt'QPaintDeviceMetrics::QPaintDeviceMetrics() (./qt-2.1.0/src/kernel/qpaintdevicemetrics.cpp:62)
QPaintDeviceMetrics::QPaintDeviceMetrics( const QPaintDevice *pd )
{
pdev = (QPaintDevice *)pd;
}
/*!
\fn int QPaintDeviceMetrics::width() const
Returns the width of the paint device, in default coordinate system
units (e.g. pixels for QPixmap and QWidget).
*/
/*!
\fn int QPaintDeviceMetrics::height() const
Returns the height of the paint device, in default coordinate system
units (e.g. pixels for QPixmap and QWidget).
*/
/*!
\fn int QPaintDeviceMetrics::widthMM() const
Returns the width of the paint device, measured in millimeters.
*/
/*!
\fn int QPaintDeviceMetrics::heightMM() const
Returns the height of the paint device, measured in millimeters.
*/
/*!
\fn int QPaintDeviceMetrics::numColors() const
Returns the number of different colors available for the paint device.
*/
/*!
\fn int QPaintDeviceMetrics::depth() const
Returns the bit depth (number of bit planes) of the paint device.
*/
/*!
\fn int QPaintDeviceMetrics::logicalDpiX() const
Returns the horizontal resolution of the device, in dots per inch, that is
used when computing font sizes.
For X this is usually the same as could be computed
from widthMM(), but on Windows this varies.
*/
/*!
\fn int QPaintDeviceMetrics::logicalDpiY() const
Returns the vertical resolution of the device, in dots per inch, that is
used when computing font sizes.
For X this is usually the same as could be computed
from heightMM(), but on Windows this varies.
*/