[][src]Struct qt_widgets::QStyleHintReturnMask

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

The QStyleHintReturnMask class provides style hints that return a QRegion.

C++ class: QStyleHintReturnMask.

C++ documentation:

The QStyleHintReturnMask class provides style hints that return a QRegion.

Methods

impl QStyleHintReturnMask[src]

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

The QStyleHintReturnMask class provides style hints that return a QRegion.

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

C++ documentation:

The QStyleHintReturnMask class provides style hints that return a QRegion.

pub unsafe fn new() -> CppBox<QStyleHintReturnMask>[src]

Constructs a QStyleHintReturnMask. The member variables are initialized to default values.

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

C++ documentation:

Constructs a QStyleHintReturnMask. The member variables are initialized to default values.

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

The QStyleHintReturnMask class provides style hints that return a QRegion.

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

C++ documentation:

The QStyleHintReturnMask class provides style hints that return a QRegion.

pub unsafe fn region(&self) -> Ref<QRegion>[src]

Returns a reference to the region field.

pub unsafe fn region_mut(&self) -> Ref<QRegion>[src]

Returns a mutable reference to the region field.

pub unsafe fn set_region(&self, value: impl CastInto<Ref<QRegion>>)[src]

Sets the value of the region field.

Methods from Deref<Target = QStyleHintReturn>

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QStyleHintReturn>>
) -> Ref<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 set_type(&self, value: c_int)[src]

Sets the value of the type field.

pub unsafe fn set_version(&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 QStyleHintReturnMask[src]

unsafe fn delete(&self)[src]

Destructor.

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

C++ documentation:

Destructor.

impl Deref for QStyleHintReturnMask[src]

type Target = QStyleHintReturn

The resulting type after dereferencing.

fn deref(&self) -> &QStyleHintReturn[src]

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

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

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

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.