[][src]Struct qt_gui::QPaintEvent

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

The QPaintEvent class contains event parameters for paint events.

C++ class: QPaintEvent.

C++ documentation:

The QPaintEvent class contains event parameters for paint events.

Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.

The event contains a region() that needs to be updated, and a rect() that is the bounding rectangle of that region. Both are provided because many widgets cannot make much use of region(), and rect() can be much faster than region().boundingRect().

Methods

impl QPaintEvent[src]

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

The QPaintEvent class contains event parameters for paint events.

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

C++ documentation:

The QPaintEvent class contains event parameters for paint events.

Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.

The event contains a region() that needs to be updated, and a rect() that is the bounding rectangle of that region. Both are provided because many widgets cannot make much use of region(), and rect() can be much faster than region().boundingRect().

pub unsafe fn from_q_region(
    paint_region: impl CastInto<Ref<QRegion>>
) -> CppBox<QPaintEvent>
[src]

Constructs a paint event object with the region that needs to be updated. The region is specified by paintRegion.

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

C++ documentation:

Constructs a paint event object with the region that needs to be updated. The region is specified by paintRegion.

pub unsafe fn from_q_rect(
    paint_rect: impl CastInto<Ref<QRect>>
) -> CppBox<QPaintEvent>
[src]

Constructs a paint event object with the rectangle that needs to be updated. The region is specified by paintRect.

Calls C++ function: [constructor] void QPaintEvent::QPaintEvent(const QRect& paintRect).

C++ documentation:

Constructs a paint event object with the rectangle that needs to be updated. The region is specified by paintRect.

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

The QPaintEvent class contains event parameters for paint events.

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

C++ documentation:

The QPaintEvent class contains event parameters for paint events.

Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.

The event contains a region() that needs to be updated, and a rect() that is the bounding rectangle of that region. Both are provided because many widgets cannot make much use of region(), and rect() can be much faster than region().boundingRect().

pub unsafe fn rect(&self) -> Ref<QRect>[src]

Returns the rectangle that needs to be updated.

Calls C++ function: const QRect& QPaintEvent::rect() const.

C++ documentation:

Returns the rectangle that needs to be updated.

See also region() and QPainter::setClipRect().

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

Returns the region that needs to be updated.

Calls C++ function: const QRegion& QPaintEvent::region() const.

C++ documentation:

Returns the region that needs to be updated.

See also rect() and QPainter::setClipRegion().

Trait Implementations

impl CppDeletable for QPaintEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QPaintEvent[src]

type Target = QEvent

The resulting type after dereferencing.

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

Calls C++ function: QEvent* static_cast<QEvent*>(QPaintEvent* ptr).

impl DynamicCast<QPaintEvent> for QEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QPaintEvent>[src]

Calls C++ function: QPaintEvent* dynamic_cast<QPaintEvent*>(QEvent* ptr).

impl StaticDowncast<QPaintEvent> for QEvent[src]

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QPaintEvent>[src]

Calls C++ function: QPaintEvent* static_cast<QPaintEvent*>(QEvent* ptr).

impl StaticUpcast<QEvent> for QPaintEvent[src]

unsafe fn static_upcast(ptr: Ptr<QPaintEvent>) -> Ptr<QEvent>[src]

Calls C++ function: QEvent* static_cast<QEvent*>(QPaintEvent* 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.