[−][src]Struct qt_gui::q_paint_device::PaintDeviceMetric
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().
Methods
impl PaintDeviceMetric
[src]
impl PaintDeviceMetric
[src]
pub const PdmWidth: PaintDeviceMetric
[src]
The width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). See also width(). (C++ enum variant: PdmWidth = 1
)
pub const PdmHeight: PaintDeviceMetric
[src]
The height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). See also height(). (C++ enum variant: PdmHeight = 2
)
pub const PdmWidthMM: PaintDeviceMetric
[src]
The width of the paint device in millimeters. See also widthMM(). (C++ enum variant: PdmWidthMM = 3
)
pub const PdmHeightMM: PaintDeviceMetric
[src]
The height of the paint device in millimeters. See also heightMM(). (C++ enum variant: PdmHeightMM = 4
)
pub const PdmNumColors: PaintDeviceMetric
[src]
The number of different colors available for the paint device. See also colorCount(). (C++ enum variant: PdmNumColors = 5
)
pub const PdmDepth: PaintDeviceMetric
[src]
The bit depth (number of bit planes) of the paint device. See also depth(). (C++ enum variant: PdmDepth = 6
)
pub const PdmDpiX: PaintDeviceMetric
[src]
The horizontal resolution of the device in dots per inch. See also logicalDpiX(). (C++ enum variant: PdmDpiX = 7
)
pub const PdmDpiY: PaintDeviceMetric
[src]
The vertical resolution of the device in dots per inch. See also logicalDpiY(). (C++ enum variant: PdmDpiY = 8
)
pub const PdmPhysicalDpiX: PaintDeviceMetric
[src]
The horizontal resolution of the device in dots per inch. See also physicalDpiX(). (C++ enum variant: PdmPhysicalDpiX = 9
)
pub const PdmPhysicalDpiY: PaintDeviceMetric
[src]
The vertical resolution of the device in dots per inch. See also physicalDpiY(). (C++ enum variant: PdmPhysicalDpiY = 10
)
pub const PdmDevicePixelRatio: PaintDeviceMetric
[src]
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
)
pub const PdmDevicePixelRatioScaled: PaintDeviceMetric
[src]
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
impl Clone for PaintDeviceMetric
[src]
fn clone(&self) -> PaintDeviceMetric
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PaintDeviceMetric
[src]
impl Debug for PaintDeviceMetric
[src]
impl Eq for PaintDeviceMetric
[src]
impl From<PaintDeviceMetric> for c_int
[src]
fn from(value: PaintDeviceMetric) -> Self
[src]
impl From<i32> for PaintDeviceMetric
[src]
impl PartialEq<PaintDeviceMetric> for PaintDeviceMetric
[src]
fn eq(&self, other: &PaintDeviceMetric) -> bool
[src]
fn ne(&self, other: &PaintDeviceMetric) -> bool
[src]
impl StructuralEq for PaintDeviceMetric
[src]
impl StructuralPartialEq for PaintDeviceMetric
[src]
Auto Trait Implementations
impl RefUnwindSafe for PaintDeviceMetric
impl Send for PaintDeviceMetric
impl Sync for PaintDeviceMetric
impl Unpin for PaintDeviceMetric
impl UnwindSafe for PaintDeviceMetric
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,