[][src]Struct qt_core::HighDpiScaleFactorRoundingPolicy

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

This enum describes the possible High-DPI scale factor rounding policies, which decide how non-integer scale factors (such as Windows 150%) are handled.

C++ enum: Qt::HighDpiScaleFactorRoundingPolicy.

C++ documentation:

This enum describes the possible High-DPI scale factor rounding policies, which decide how non-integer scale factors (such as Windows 150%) are handled.

The active policy is set by calling QGuiApplication::setHighDdpiScaleFactorRoundingPolicy() before the application object is created, or by setting the QT_SCALE_FACTOR_ROUNDING_POLICY environment variable.

This enum was introduced or modified in Qt 5.14.

See also QGuiApplication::setHighDpiScaleFactorRoundingPolicy() and AA_EnableHighDpiScaling.

Methods

impl HighDpiScaleFactorRoundingPolicy[src]

pub fn to_int(&self) -> c_int[src]

impl HighDpiScaleFactorRoundingPolicy[src]

pub const Unset: HighDpiScaleFactorRoundingPolicy[src]

C++ enum variant: Unset = 0

pub const Round: HighDpiScaleFactorRoundingPolicy[src]

Round up for .5 and above. (C++ enum variant: Round = 1)

pub const Ceil: HighDpiScaleFactorRoundingPolicy[src]

Always round up. (C++ enum variant: Ceil = 2)

pub const Floor: HighDpiScaleFactorRoundingPolicy[src]

Always round down. (C++ enum variant: Floor = 3)

pub const RoundPreferFloor: HighDpiScaleFactorRoundingPolicy[src]

Round up for .75 and above. (C++ enum variant: RoundPreferFloor = 4)

pub const PassThrough: HighDpiScaleFactorRoundingPolicy[src]

Don't round. (C++ enum variant: PassThrough = 5)

Trait Implementations

impl Clone for HighDpiScaleFactorRoundingPolicy[src]

impl Copy for HighDpiScaleFactorRoundingPolicy[src]

impl Debug for HighDpiScaleFactorRoundingPolicy[src]

impl Eq for HighDpiScaleFactorRoundingPolicy[src]

impl From<HighDpiScaleFactorRoundingPolicy> for c_int[src]

impl From<i32> for HighDpiScaleFactorRoundingPolicy[src]

impl PartialEq<HighDpiScaleFactorRoundingPolicy> for HighDpiScaleFactorRoundingPolicy[src]

impl StructuralEq for HighDpiScaleFactorRoundingPolicy[src]

impl StructuralPartialEq for HighDpiScaleFactorRoundingPolicy[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.