[][src]Struct qt_core::SizeMode

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

This enum is used by QPainter::drawRoundedRect() and QPainterPath::addRoundedRect() functions to specify the radii of rectangle corners with respect to the dimensions of the bounding rectangles specified.

C++ enum: Qt::SizeMode.

C++ documentation:

This enum is used by QPainter::drawRoundedRect() and QPainterPath::addRoundedRect() functions to specify the radii of rectangle corners with respect to the dimensions of the bounding rectangles specified.

This enum was introduced or modified in Qt 4.4.

Methods

impl SizeMode[src]

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

impl SizeMode[src]

pub const AbsoluteSize: SizeMode[src]

Specifies the size using absolute measurements. (C++ enum variant: AbsoluteSize = 0)

pub const RelativeSize: SizeMode[src]

Specifies the size relative to the bounding rectangle, typically using percentage measurements. (C++ enum variant: RelativeSize = 1)

Trait Implementations

impl Eq for SizeMode[src]

impl Clone for SizeMode[src]

impl PartialEq<SizeMode> for SizeMode[src]

impl From<i32> for SizeMode[src]

impl From<SizeMode> for c_int[src]

impl Copy for SizeMode[src]

impl Debug for SizeMode[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

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