Skip to main content

QRegion

Struct QRegion 

Source
pub struct QRegion { /* private fields */ }
Expand description

C++ class: QRegion.

Implementations§

Source§

impl QRegion

Source

pub unsafe fn add_assign_q_region( &self, r: impl CastInto<Ref<QRegion>>, ) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator+=(const QRegion& r).

Source

pub unsafe fn add_assign_q_rect( &self, r: impl CastInto<Ref<QRect>>, ) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator+=(const QRect& r).

Source

pub unsafe fn begin(&self) -> Ptr<QRect>

Calls C++ function: const QRect* QRegion::begin() const.

Source

pub unsafe fn bit_and_assign_q_region( &self, r: impl CastInto<Ref<QRegion>>, ) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator&=(const QRegion& r).

Source

pub unsafe fn bit_and_assign_q_rect( &self, r: impl CastInto<Ref<QRect>>, ) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator&=(const QRect& r).

Source

pub unsafe fn bit_or_assign( &self, r: impl CastInto<Ref<QRegion>>, ) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator|=(const QRegion& r).

Source

pub unsafe fn bit_xor_assign( &self, r: impl CastInto<Ref<QRegion>>, ) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator^=(const QRegion& r).

Source

pub unsafe fn bounding_rect(&self) -> CppBox<QRect>

Calls C++ function: QRect QRegion::boundingRect() const.

Source

pub unsafe fn cbegin(&self) -> Ptr<QRect>

Calls C++ function: const QRect* QRegion::cbegin() const.

Source

pub unsafe fn cend(&self) -> Ptr<QRect>

Calls C++ function: const QRect* QRegion::cend() const.

Source

pub unsafe fn contains_q_point(&self, p: impl CastInto<Ref<QPoint>>) -> bool

Calls C++ function: bool QRegion::contains(const QPoint& p) const.

Source

pub unsafe fn contains_q_rect(&self, r: impl CastInto<Ref<QRect>>) -> bool

Calls C++ function: bool QRegion::contains(const QRect& r) const.

Source

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

Calls C++ function: QRegion& QRegion::operator=(const QRegion& arg1).

Source

pub unsafe fn end(&self) -> Ptr<QRect>

Calls C++ function: const QRect* QRegion::end() const.

Source

pub unsafe fn intersected_q_region( &self, r: impl CastInto<Ref<QRegion>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::intersected(const QRegion& r) const.

Source

pub unsafe fn intersected_q_rect( &self, r: impl CastInto<Ref<QRect>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::intersected(const QRect& r) const.

Source

pub unsafe fn intersects_q_region(&self, r: impl CastInto<Ref<QRegion>>) -> bool

Calls C++ function: bool QRegion::intersects(const QRegion& r) const.

Source

pub unsafe fn intersects_q_rect(&self, r: impl CastInto<Ref<QRect>>) -> bool

Calls C++ function: bool QRegion::intersects(const QRect& r) const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QRegion::isEmpty() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QRegion::isNull() const.

Source

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

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

Source

pub unsafe fn from_4_int_region_type( x: c_int, y: c_int, w: c_int, h: c_int, t: RegionType, ) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(int x, int y, int w, int h, QRegion::RegionType t = …).

Source

pub unsafe fn from_q_rect_region_type( r: impl CastInto<Ref<QRect>>, t: RegionType, ) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(const QRect& r, QRegion::RegionType t = …).

Source

pub unsafe fn from_q_polygon_fill_rule( pa: impl CastInto<Ref<QPolygon>>, fill_rule: FillRule, ) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(const QPolygon& pa, Qt::FillRule fillRule = …).

Source

pub unsafe fn from_q_bitmap( bitmap: impl CastInto<Ref<QBitmap>>, ) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(const QBitmap& bitmap).

Source

pub unsafe fn from_4_int( x: c_int, y: c_int, w: c_int, h: c_int, ) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(int x, int y, int w, int h).

Source

pub unsafe fn from_q_rect(r: impl CastInto<Ref<QRect>>) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(const QRect& r).

Source

pub unsafe fn from_q_polygon( pa: impl CastInto<Ref<QPolygon>>, ) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(const QPolygon& pa).

Source

pub unsafe fn new_copy(region: impl CastInto<Ref<QRegion>>) -> CppBox<QRegion>

Calls C++ function: [constructor] void QRegion::QRegion(const QRegion& region).

Source

pub unsafe fn rect_count(&self) -> c_int

Calls C++ function: int QRegion::rectCount() const.

Source

pub unsafe fn rects(&self) -> CppBox<QVectorOfQRect>

Calls C++ function: QVector<QRect> QRegion::rects() const.

Source

pub unsafe fn set_rects(&self, rect: impl CastInto<Ptr<QRect>>, num: c_int)

Calls C++ function: void QRegion::setRects(const QRect* rect, int num).

Source

pub unsafe fn sub_assign(&self, r: impl CastInto<Ref<QRegion>>) -> Ref<QRegion>

Calls C++ function: QRegion& QRegion::operator-=(const QRegion& r).

Source

pub unsafe fn subtracted( &self, r: impl CastInto<Ref<QRegion>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::subtracted(const QRegion& r) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QRegion>>)

Calls C++ function: void QRegion::swap(QRegion& other).

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QRegion::operator QVariant() const.

Source

pub unsafe fn translate_2a(&self, dx: c_int, dy: c_int)

Calls C++ function: void QRegion::translate(int dx, int dy).

Source

pub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPoint>>)

Calls C++ function: void QRegion::translate(const QPoint& p).

Source

pub unsafe fn translated_2a(&self, dx: c_int, dy: c_int) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::translated(int dx, int dy) const.

Source

pub unsafe fn translated_1a( &self, p: impl CastInto<Ref<QPoint>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::translated(const QPoint& p) const.

Source

pub unsafe fn united_q_region( &self, r: impl CastInto<Ref<QRegion>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::united(const QRegion& r) const.

Source

pub unsafe fn united_q_rect( &self, r: impl CastInto<Ref<QRect>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::united(const QRect& r) const.

Source

pub unsafe fn xored(&self, r: impl CastInto<Ref<QRegion>>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::xored(const QRegion& r) const.

Trait Implementations§

Source§

impl Add<Ref<QRect>> for &QRegion

Source§

fn add(self, r: Ref<QRect>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator+(const QRect& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the + operator.
Source§

impl Add<Ref<QRegion>> for &QRegion

Source§

fn add(self, r: Ref<QRegion>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator+(const QRegion& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the + operator.
Source§

impl Begin for QRegion

Source§

unsafe fn begin(&self) -> Ptr<QRect>

Calls C++ function: const QRect* QRegion::begin() const.

Source§

type Output = Ptr<QRect>

Output type.
Source§

impl BitAnd<Ref<QRect>> for &QRegion

Source§

fn bitand(self, r: Ref<QRect>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator&(const QRect& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the & operator.
Source§

impl BitAnd<Ref<QRegion>> for &QRegion

Source§

fn bitand(self, r: Ref<QRegion>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator&(const QRegion& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the & operator.
Source§

impl BitOr<Ref<QRegion>> for &QRegion

Source§

fn bitor(self, r: Ref<QRegion>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator|(const QRegion& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the | operator.
Source§

impl BitXor<Ref<QRegion>> for &QRegion

Source§

fn bitxor(self, r: Ref<QRegion>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator^(const QRegion& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the ^ operator.
Source§

impl CppDeletable for QRegion

Source§

unsafe fn delete(&self)

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

Source§

impl End for QRegion

Source§

unsafe fn end(&self) -> Ptr<QRect>

Calls C++ function: const QRect* QRegion::end() const.

Source§

type Output = Ptr<QRect>

Output type.
Source§

impl Mul<Ref<QMatrix>> for &QRegion

Source§

fn mul(self, m: Ref<QMatrix>) -> CppBox<QRegion>

Calls C++ function: QRegion operator*(const QRegion& r, const QMatrix& m).

Source§

type Output = CppBox<QRegion>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QTransform>> for &QRegion

Source§

fn mul(self, m: Ref<QTransform>) -> CppBox<QRegion>

Calls C++ function: QRegion operator*(const QRegion& r, const QTransform& m).

Source§

type Output = CppBox<QRegion>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QRegion>> for QRegion

Source§

fn eq(&self, r: &Ref<QRegion>) -> bool

Calls C++ function: bool QRegion::operator==(const QRegion& r) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Sub<Ref<QRegion>> for &QRegion

Source§

fn sub(self, r: Ref<QRegion>) -> CppBox<QRegion>

Calls C++ function: QRegion QRegion::operator-(const QRegion& r) const.

Source§

type Output = CppBox<QRegion>

The resulting type after applying the - operator.

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