[−][src]Struct qt_gui::QPaintEvent
The QPaintEvent class contains event parameters for paint events.
C++ class: QPaintEvent
.
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]
&self,
other: impl CastInto<Ref<QPaintEvent>>
) -> Ref<QPaintEvent>
The QPaintEvent class contains event parameters for paint events.
Calls C++ function: QPaintEvent& QPaintEvent::operator=(const QPaintEvent& other)
.
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]
paint_region: impl CastInto<Ref<QRegion>>
) -> CppBox<QPaintEvent>
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)
.
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]
paint_rect: impl CastInto<Ref<QRect>>
) -> CppBox<QPaintEvent>
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)
.
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]
other: impl CastInto<Ref<QPaintEvent>>
) -> CppBox<QPaintEvent>
The QPaintEvent class contains event parameters for paint events.
Calls C++ function: [constructor] void QPaintEvent::QPaintEvent(const QPaintEvent& other)
.
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
.
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
.
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
impl RefUnwindSafe for QPaintEvent
impl Send for QPaintEvent
impl Sync for QPaintEvent
impl Unpin for QPaintEvent
impl UnwindSafe for QPaintEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,