Struct qt_gui::q_paint_device::PaintDeviceMetric
source · pub struct PaintDeviceMetric(/* private fields */);
Expand description
Describes the various metrics of a paint device.
C++ enum: QPaintDevice::PaintDeviceMetric
.
Describes the various metrics of a paint device.
See also metric() and devicePixelRatioF().
Implementations§
source§impl PaintDeviceMetric
impl PaintDeviceMetric
sourcepub const PdmWidth: PaintDeviceMetric = _
pub const PdmWidth: PaintDeviceMetric = _
sourcepub const PdmHeight: PaintDeviceMetric = _
pub const PdmHeight: PaintDeviceMetric = _
sourcepub const PdmWidthMM: PaintDeviceMetric = _
pub const PdmWidthMM: PaintDeviceMetric = _
The width of the paint device in millimeters. See also widthMM(). (C++ enum variant: PdmWidthMM = 3
)
sourcepub const PdmHeightMM: PaintDeviceMetric = _
pub const PdmHeightMM: PaintDeviceMetric = _
The height of the paint device in millimeters. See also heightMM(). (C++ enum variant: PdmHeightMM = 4
)
sourcepub const PdmNumColors: PaintDeviceMetric = _
pub const PdmNumColors: PaintDeviceMetric = _
The number of different colors available for the paint device. See also colorCount(). (C++ enum variant: PdmNumColors = 5
)
sourcepub const PdmDepth: PaintDeviceMetric = _
pub const PdmDepth: PaintDeviceMetric = _
The bit depth (number of bit planes) of the paint device. See also depth(). (C++ enum variant: PdmDepth = 6
)
sourcepub const PdmDpiX: PaintDeviceMetric = _
pub const PdmDpiX: PaintDeviceMetric = _
The horizontal resolution of the device in dots per inch. See also logicalDpiX(). (C++ enum variant: PdmDpiX = 7
)
sourcepub const PdmDpiY: PaintDeviceMetric = _
pub const PdmDpiY: PaintDeviceMetric = _
The vertical resolution of the device in dots per inch. See also logicalDpiY(). (C++ enum variant: PdmDpiY = 8
)
sourcepub const PdmPhysicalDpiX: PaintDeviceMetric = _
pub const PdmPhysicalDpiX: PaintDeviceMetric = _
The horizontal resolution of the device in dots per inch. See also physicalDpiX(). (C++ enum variant: PdmPhysicalDpiX = 9
)
sourcepub const PdmPhysicalDpiY: PaintDeviceMetric = _
pub const PdmPhysicalDpiY: PaintDeviceMetric = _
The vertical resolution of the device in dots per inch. See also physicalDpiY(). (C++ enum variant: PdmPhysicalDpiY = 10
)
sourcepub const PdmDevicePixelRatio: PaintDeviceMetric = _
pub const PdmDevicePixelRatio: PaintDeviceMetric = _
The device pixel ratio for device. Common values are 1 for normal-dpi displays and 2 for high-dpi “retina” displays. (C++ enum variant: PdmDevicePixelRatio = 11
)
sourcepub const PdmDevicePixelRatioScaled: PaintDeviceMetric = _
pub const PdmDevicePixelRatioScaled: PaintDeviceMetric = _
The scaled device pixel ratio for the device. This is identical to PdmDevicePixelRatio, except that the value is scaled by a constant factor in order to support paint devices with fractional scale factors. The constant scaling factor used is devicePixelRatioFScale(). This enum value has been introduced in Qt 5.6. (C++ enum variant: PdmDevicePixelRatioScaled = 12
)
Trait Implementations§
source§impl Clone for PaintDeviceMetric
impl Clone for PaintDeviceMetric
source§fn clone(&self) -> PaintDeviceMetric
fn clone(&self) -> PaintDeviceMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PaintDeviceMetric
impl Debug for PaintDeviceMetric
source§impl From<PaintDeviceMetric> for c_int
impl From<PaintDeviceMetric> for c_int
source§fn from(value: PaintDeviceMetric) -> Self
fn from(value: PaintDeviceMetric) -> Self
source§impl From<i32> for PaintDeviceMetric
impl From<i32> for PaintDeviceMetric
source§impl PartialEq for PaintDeviceMetric
impl PartialEq for PaintDeviceMetric
source§fn eq(&self, other: &PaintDeviceMetric) -> bool
fn eq(&self, other: &PaintDeviceMetric) -> bool
self
and other
values to be equal, and is used
by ==
.