QPaintDevice Class Reference
|
Константа | Значение | Описание |
---|---|---|
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.
Смотрите также 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().
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().
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. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.
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. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.
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.
Смотрите также width().
Copyright © 2008 Nokia | Торговые марки | Qt 4.4.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |