[][src]Struct qt_gui::q_paint_device::PaintDeviceMetric

#[repr(transparent)]
pub struct PaintDeviceMetric(_);

Describes the various metrics of a paint device.

C++ enum: QPaintDevice::PaintDeviceMetric.

C++ documentation:

Describes the various metrics of a paint device.

See also metric() and devicePixelRatioF().

Methods

impl PaintDeviceMetric[src]

pub fn to_int(&self) -> c_int[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]

impl Copy for PaintDeviceMetric[src]

impl Debug for PaintDeviceMetric[src]

impl Eq for PaintDeviceMetric[src]

impl From<PaintDeviceMetric> for c_int[src]

impl From<i32> for PaintDeviceMetric[src]

impl PartialEq<PaintDeviceMetric> for PaintDeviceMetric[src]

impl StructuralEq for PaintDeviceMetric[src]

impl StructuralPartialEq for PaintDeviceMetric[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.