[][src]Struct qt_widgets::QStyleHintReturn

#[repr(C)]
pub struct QStyleHintReturn { /* fields omitted */ }

The QStyleHintReturn class provides style hints that return more than basic data types.

C++ class: QStyleHintReturn.

C++ documentation:

The QStyleHintReturn class provides style hints that return more than basic data types.

QStyleHintReturn and its subclasses are used to pass information from a style back to the querying widget. This is most useful when the return value from QStyle::styleHint() does not provide enough detail; for example, when a mask is to be returned.

Methods

impl QStyleHintReturn[src]

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<QStyleHintReturn>>
) -> MutRef<QStyleHintReturn>
[src]

The QStyleHintReturn class provides style hints that return more than basic data types.

Calls C++ function: QStyleHintReturn& QStyleHintReturn::operator=(const QStyleHintReturn& other).

C++ documentation:

The QStyleHintReturn class provides style hints that return more than basic data types.

QStyleHintReturn and its subclasses are used to pass information from a style back to the querying widget. This is most useful when the return value from QStyle::styleHint() does not provide enough detail; for example, when a mask is to be returned.

pub unsafe fn new_2a(version: c_int, type_: c_int) -> CppBox<QStyleHintReturn>[src]

Constructs a QStyleHintReturn with version version and type type.

Calls C++ function: [constructor] void QStyleHintReturn::QStyleHintReturn(int version = …, int type = …).

C++ documentation:

Constructs a QStyleHintReturn with version version and type type.

The version has no special meaning for QStyleHintReturn; it can be used by subclasses to distinguish between different version of the same hint type.

See also QStyleOption::version and QStyleOption::type.

pub unsafe fn new_0a() -> CppBox<QStyleHintReturn>[src]

The QStyleHintReturn class provides style hints that return more than basic data types.

Calls C++ function: [constructor] void QStyleHintReturn::QStyleHintReturn().

C++ documentation:

The QStyleHintReturn class provides style hints that return more than basic data types.

QStyleHintReturn and its subclasses are used to pass information from a style back to the querying widget. This is most useful when the return value from QStyle::styleHint() does not provide enough detail; for example, when a mask is to be returned.

pub unsafe fn new_1a(version: c_int) -> CppBox<QStyleHintReturn>[src]

Constructs a QStyleHintReturn with version version and type type.

Calls C++ function: [constructor] void QStyleHintReturn::QStyleHintReturn(int version = …).

C++ documentation:

Constructs a QStyleHintReturn with version version and type type.

The version has no special meaning for QStyleHintReturn; it can be used by subclasses to distinguish between different version of the same hint type.

See also QStyleOption::version and QStyleOption::type.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QStyleHintReturn>>
) -> CppBox<QStyleHintReturn>
[src]

The QStyleHintReturn class provides style hints that return more than basic data types.

Calls C++ function: [constructor] void QStyleHintReturn::QStyleHintReturn(const QStyleHintReturn& other).

C++ documentation:

The QStyleHintReturn class provides style hints that return more than basic data types.

QStyleHintReturn and its subclasses are used to pass information from a style back to the querying widget. This is most useful when the return value from QStyle::styleHint() does not provide enough detail; for example, when a mask is to be returned.

pub unsafe fn set_type(&mut self, value: c_int)[src]

Sets the value of the type field.

pub unsafe fn set_version(&mut self, value: c_int)[src]

Sets the value of the version field.

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

Returns the value of the type field.

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

Returns the value of the version field.

Trait Implementations

impl CppDeletable for QStyleHintReturn[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: [destructor] void QStyleHintReturn::~QStyleHintReturn().

impl StaticDowncast<QStyleHintReturnMask> for QStyleHintReturn[src]

unsafe fn static_downcast(
    ptr: Ptr<QStyleHintReturn>
) -> Ptr<QStyleHintReturnMask>
[src]

Calls C++ function: QStyleHintReturnMask* static_cast<QStyleHintReturnMask*>(QStyleHintReturn* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QStyleHintReturn>
) -> MutPtr<QStyleHintReturnMask>
[src]

Calls C++ function: QStyleHintReturnMask* static_cast<QStyleHintReturnMask*>(QStyleHintReturn* ptr).

impl StaticDowncast<QStyleHintReturnVariant> for QStyleHintReturn[src]

unsafe fn static_downcast(
    ptr: Ptr<QStyleHintReturn>
) -> Ptr<QStyleHintReturnVariant>
[src]

Calls C++ function: QStyleHintReturnVariant* static_cast<QStyleHintReturnVariant*>(QStyleHintReturn* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QStyleHintReturn>
) -> MutPtr<QStyleHintReturnVariant>
[src]

Calls C++ function: QStyleHintReturnVariant* static_cast<QStyleHintReturnVariant*>(QStyleHintReturn* ptr).

impl StaticUpcast<QStyleHintReturn> for QStyleHintReturnMask[src]

unsafe fn static_upcast(ptr: Ptr<QStyleHintReturnMask>) -> Ptr<QStyleHintReturn>[src]

Calls C++ function: QStyleHintReturn* static_cast<QStyleHintReturn*>(QStyleHintReturnMask* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QStyleHintReturnMask>
) -> MutPtr<QStyleHintReturn>
[src]

Calls C++ function: QStyleHintReturn* static_cast<QStyleHintReturn*>(QStyleHintReturnMask* ptr).

impl StaticUpcast<QStyleHintReturn> for QStyleHintReturnVariant[src]

unsafe fn static_upcast(
    ptr: Ptr<QStyleHintReturnVariant>
) -> Ptr<QStyleHintReturn>
[src]

Calls C++ function: QStyleHintReturn* static_cast<QStyleHintReturn*>(QStyleHintReturnVariant* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QStyleHintReturnVariant>
) -> MutPtr<QStyleHintReturn>
[src]

Calls C++ function: QStyleHintReturn* static_cast<QStyleHintReturn*>(QStyleHintReturnVariant* ptr).

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, 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.