Struct QStyleHintReturnMask

Source
#[repr(C)]
pub struct QStyleHintReturnMask { /* private fields */ }
Expand description

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.

Implementations§

Source§

impl QStyleHintReturnMask

Source

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

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.

Source

pub unsafe fn new() -> CppBox<QStyleHintReturnMask>

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.

Source

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

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.

Source

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

Returns a reference to the region field.

Source

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

Returns a mutable reference to the region field.

Source

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

Sets the value of the region field.

Methods from Deref<Target = QStyleHintReturn>§

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QStyleHintReturn>>, ) -> Ref<QStyleHintReturn>

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.

Source

pub unsafe fn set_type(&self, value: c_int)

Sets the value of the type field.

Source

pub unsafe fn set_version(&self, value: c_int)

Sets the value of the version field.

Source

pub unsafe fn type_(&self) -> c_int

Returns the value of the type field.

Source

pub unsafe fn version(&self) -> c_int

Returns the value of the version field.

Trait Implementations§

Source§

impl CppDeletable for QStyleHintReturnMask

Source§

unsafe fn delete(&self)

Destructor.

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

C++ documentation:

Destructor.

Source§

impl Deref for QStyleHintReturnMask

Source§

fn deref(&self) -> &QStyleHintReturn

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

Source§

type Target = QStyleHintReturn

The resulting type after dereferencing.
Source§

impl StaticDowncast<QStyleHintReturnMask> for QStyleHintReturn

Source§

unsafe fn static_downcast( ptr: Ptr<QStyleHintReturn>, ) -> Ptr<QStyleHintReturnMask>

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

Source§

impl StaticUpcast<QStyleHintReturn> for QStyleHintReturnMask

Source§

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

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.