QPaintDevice Class Reference |
Constant | Value | Description |
---|---|---|
QPaintDevice::PdmWidth | 1 | The width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). See also width(). |
QPaintDevice::PdmHeight | 2 | The height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). See also height(). |
QPaintDevice::PdmWidthMM | 3 | The width of the paint device in millimeters. See also widthMM(). |
QPaintDevice::PdmHeightMM | 4 | The height of the paint device in millimeters. See also heightMM(). |
QPaintDevice::PdmNumColors | 5 | The number of different colors available for the paint device. See also numColors(). |
QPaintDevice::PdmDepth | 6 | The bit depth (number of bit planes) of the paint device. See also depth(). |
QPaintDevice::PdmDpiX | 7 | The horizontal resolution of the device in dots per inch. See also logicalDpiX(). |
QPaintDevice::PdmDpiY | 8 | The vertical resolution of the device in dots per inch. See also logicalDpiY(). |
QPaintDevice::PdmPhysicalDpiX | 9 | The horizontal resolution of the device in dots per inch. See also physicalDpiX(). |
QPaintDevice::PdmPhysicalDpiY | 10 | The vertical resolution of the device in dots per inch. See also physicalDpiY(). |
See also metric().
Constructs a paint device. This constructor can be invoked only from subclasses of QPaintDevice.
Destroys the paint device and frees window system resources.
Returns the bit depth (number of bit planes) of the paint device.
Returns the height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget).
See also heightMM().
Returns the height of the paint device in millimeters.
See also height().
Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from widthMM(), but it varies on Windows.
Note that if the logicalDpiX() doesn't equal the physicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.
See also logicalDpiY() and physicalDpiX().
Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from heightMM(), but it varies on Windows.
Note that if the logicalDpiY() doesn't equal the physicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping.
See also logicalDpiX() and physicalDpiY().
Returns the metric information for the given paint device metric.
See also PaintDeviceMetric.
Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.
Returns a pointer to the paint engine used for drawing on the device.
Returns true if the device is currently being painted on, i.e. someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.
See also QPainter::isActive().
Returns the horizontal resolution of the device in dots per inch.
Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.
See also physicalDpiY() and logicalDpiX().
Returns the horizontal resolution of the device in dots per inch.
Note that if the physicalDpiY() doesn't equal the logicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping.
See also physicalDpiX() and logicalDpiY().
Returns the width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget).
See also widthMM().
Returns the width of the paint device in millimeters.
See also width().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.1 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com